Skip to contentSkip to conversation

Help with whitelist

DISCUSSION Joey 2 participants 2 messages Mar 11, 2009

lore
Share & tools
lore

Joey

author
#0 lore raw

Hello All,

Im having a problem with a whitelist I am trying to implement with iptables and apparently we still block IP's on the whitelist.

I am basically blocking port 25 traffic to blocked IP's but also need to whitelist some as well insuring they never get blocked by accident.

I have my iptables rules posted here: http://web56.net/iptables.txt

We also use fail2ban which blocks other IP's which fail password, so my whitelist is to hopefully protect against false bocking of legit clients.

I must be missing something stupid, but I just cant see it.

Any help is greatly appreciated!

Thanks!

#1 lore raw

You seem to have lots of entries in your lists. Did you consider using ipset?

As for the question. Look at iptables -L. Fail2ban adds it's rules to the head of the INPUT chain of the filter table by default, so it's rules trigger before whitelist.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joey
Sent: Wednesday, March 11, 2009 9:21 PM
To: IPTables
Subject: Help with whitelist

Hello All,

Im having a problem with a whitelist I am trying to implement with iptables and apparently we still block IP's on the whitelist.

I am basically blocking port 25 traffic to blocked IP's but also need to whitelist some as well insuring they never get blocked by accident.

I have my iptables rules posted here: http://web56.net/iptables.txt

We also use fail2ban which blocks other IP's which fail password, so my whitelist is to hopefully protect against false bocking of legit clients.

I must be missing something stupid, but I just cant see it.

Any help is greatly appreciated!

Thanks!

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html