Howto load iptables rules at boot time on Debian 8 Linux system
In this mini post I’ll show you how to save, and load your iptables rules at boot time on Debian 8 “Jessie”, and Ubuntu 14.04, and higher.
To save, and load your current iptables rules at boot, and halt time “make them persistent”, you need to install extra package “iptables-persistent”, run the following command, and accept all OK by pressing ENTER key:
# apt-get -y install iptables-persistent
Now, all your applied iptables rules will be loaded at boot, and halt time.
If you added any rules after installing the above package, run the following command to save it, and load it at boot time.
# netfilter-persistent save run-parts: executing /usr/share/netfilter-persistent/plugins.d/15-ip4tables save run-parts: executing /usr/share/netfilter-persistent/plugins.d/25-ip6tables save
Now both your existing, and new rules will be loaded at boot time.
If You Appreciate What We Do Here On Mimastech, You Should Consider:
- Stay Connected to: Facebook | Twitter | Google+
- Support us via PayPal Donation
- Subscribe to our email newsletters.
- Tell other sysadmins / friends about Us - Share and Like our posts and services
We are thankful for your never ending support.