How to block someone's IP

From Kolmisoft Wiki
Revision as of 12:43, 5 January 2009 by Admin (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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)