Linux / Unix: How Can I Block ip address of spammers with iptables?

Posted by Jiltin     Tags: , 16 June, 2009    1,891 views    (1) Comment

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 Save and close the file. Just restart the firewall: # /etc/init.d/iptables restart Following Read Full Article (Click here)...

Categories : Scripts Unix Tags : ,

Firewall – How Do I Block an IP Address on My Linux server?

Posted by Jiltin     Tags: 12 June, 2009    1,275 views    (0) Comment

What is iptable? Iptables is a generic table structure that defines rules and commands as part of the netfilter framework that facilitates Network Address Translation (NAT), packet filtering, and packet mangling in the Linux 2.4 and later operating systems. NAT is the process of converting an Internet Protocol address (IP address) into another IP address. Packet filtering is the process of passing or blocking packets at a network interface based on source and destination addresses, ports, or Read Full Article (Click here)...

Categories : Scripts Unix, Web & Scripts Tags :