Linux / Unix: How Can I Block ip address of spammers with iptables?
Posted by
Jiltin 16 June, 2009 1,745 views
How do I block ip address of spammers with iptables based firewall under CentOS Linux 5?
You can simply block IP address of spammers by editing /etc/sysconfig/iptables file under, CentOS Linux, Fedora Linux or RHEL 4.x/5.x etc
Open file /etc/sysconfig/iptables, Append ip address of spammers as follows:
-A RH-Firewall-1-INPUT -s SPAMMER-IP -j DROP
-A RH-Firewall-1-INPUT -s SPAMMER-SUBNET-BLOCK -j DROP
-A RH-Firewall-1-INPUT -s SPAMMER-SUBNET-BLOCK -j DROP
Save and close the file. Just restart the firewall:
# /etc/init.d/iptables restart
Categories :
Scripts Unix

hi i needed an ip address of my own i felt that it must be spam free and i got the best solution from http://www.ip-details.com………..