Blog Archives

Making IPTables survive a reboot – Saving and Restoring

By default Ubuntu / Debian do NOT save any IPTables settings when shutting down. I think the thought behind this is that if you screw up a config, then a restart will save you. In some instances, such as a

Posted in iptables, linux Tagged with: , ,

Using IP Tables to quickly block an IP address

To block an offending (DOS/Spam/Password hacking attempts etc) IP address from connecting to your server, use iptables. xx.xx.xx.xx is ip address of remote. iptables -A INPUT -s xx.xx.xx.xx -j DROP To undo: iptables -D INPUT -s xx.xx.xx.xx -j DROP

Posted in iptables Tagged with: , ,