Difference between revisions of "How to block someone's IP"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: To block incoming IP, use this command: iptables -A INPUT -s IP -j DROP For example: iptables -A INPUT -s 123.123.123.123 -j DROP To save the rule: On Centos) /etc/init.d/i...)
 
Line 12: Line 12:
   /etc/init.d/iptables save
   /etc/init.d/iptables save
On Debian)
On Debian)
Please read this link http://www.debian-administration.org/articles/445

Revision as of 12:46, 5 January 2009

To block incoming IP, use this command:

   iptables -A INPUT -s IP -j DROP

For example:

   iptables -A INPUT -s 123.123.123.123 -j DROP

To save the rule:

On Centos)

  /etc/init.d/iptables save

On Debian)

Please read this link http://www.debian-administration.org/articles/445