Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Gary Neil on July 30, 2003, 07:01:31 AM

Title: Blocking IPs with iptables
Post by: Gary Neil 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.
Title: Re: Blocking IPs with iptables
Post by: krusty on July 30, 2003, 01:24:03 PM
Maybe you want to write another line with DENY in it ?