Robot Butler
  Making those complicated tasks nice and easy.
  A hub for guides, walkthroughs and general information.
Follow us on Twitter RSS Feed
Blacklisting an IP address in Linux which in turn will 'firewall' out that IP is nice and simple using the built in application called "IPTables".

To add an IP address to the Firewall/Blacklist simply do the following as root:

iptables -A INPUT -s -j DROP

Replacing '' with the IP address that you would like blocked. Removing an IP is just as easy, just type:

iptables -D INPUT -s -j DROP

Again replacing '' with the IP you would like removed from the list.

Just to make sure that IP Tables saves you changes, you may wish to type iptables-save as root which will make sure your additions or removals are stored.


No comments yet.

Post a Comment

    Email (not displayed)

The name of this website is Robot...      


  • 14 categories
  • 50 articles

Site, design and code by Benjamin Hodgetts.