Computer Scientist, Graduate Student, and Geek

Tag: iptables

Persistent Iptables in Ubuntu

September 09, 2011

Fedora defaults to persisting iptables (the Linux firewall) between restarts, but this is not the default case in Ubuntu. To have iptables persist between reboots in Ubuntu, you can install the iptables-persistent package:

sudo apt-get install iptables-persistent
The persistent tables will be stored in /etc/iptables/rules by default. You can save the live iptables to the persistent file using:
sudo iptables-save< /etc/iptables/rules

Solution is from https://help.ubuntu.com/community/IptablesHowTo#Configuration_on_startup

Categories: Linux, Networking

Tags: iptables, ubuntu