Koozali.org: home of the SME Server

Blocking IPs with iptables

Gary Neil

Blocking IPs with iptables
« on: July 30, 2003, 07:01:31 AM »
I have been trying to block email form a block of ip addresses.
I'm using e-Smith 5.6

I used the command
iptables -A INPUT -s xxx.xxx.xxx.xxx/24 -j DROP

when I run  iptables -L INPUT
it shows
DROP  all  --  xxx.xxx.xxx.xxx/24  anywhere

Yet email from blocked ips keeps getting through.

Can anyone tell me what I'm doing wrong?

Thanks for any help.

krusty

Re: Blocking IPs with iptables
« Reply #1 on: July 30, 2003, 01:24:03 PM »
Maybe you want to write another line with DENY in it ?