Saving IPTABLES rules on Ubuntu 16.04

image_pdfimage_print

In order to preserve your IPTABLES rules upon reboot, install iptables-persistant.

sudo apt-get install iptables-persistent

If you make any changes to the rules, run the following commands so you don’t lose them during a system reboot.

sudo netfilter-persistent save
sudo netfilter-persistent reload

Share this post... Tweet about this on TwitterShare on Facebook0Share on Google+0Pin on Pinterest0Share on Reddit0Share on StumbleUpon0