Posted: . At: 10:56 PM. This was 10 years ago. Post ID: 7039
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

How to save your iptables firewall rules using the iptables-persistent package for Linux.

The iptables firewall is the built-in firewall for protecting a Linux machine from online threats. But the settings are not save upon a re-boot. This is easily alleviated by installing the iptables-persistent package for Ubuntu. Once this is installed, you will be greeted with a screen that will ask you if you wish to save your iptables rules. Answer yes to both questions and the application will save your rules safely in case of a re-boot of the desktop or server the firewall is on.

Type this command to install this application.

sudo apt-get install iptables-persistent

There is another blog posting here: http://ekuric.wordpress.com/2013/05/05/iptables-persistent/. This page also describes the iptables-persistent package. This will be a great help for anyone who is using the iptables firewall on Linux.

Apply iptables settings on boot. This is very good for a server.

http://securitronlinux.com/bejiitaswrath/how-to-have-iptables-entries-applied-on-boot/.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.