Been looking where does netfilter-persistent store its rules but could not find any documentation about it on help.ubuntu.com.
Does anybody know where does netfilter-persistent in Ubuntu save its rules so it survives a reboot?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityBeen looking where does netfilter-persistent store its rules but could not find any documentation about it on help.ubuntu.com.
Does anybody know where does netfilter-persistent in Ubuntu save its rules so it survives a reboot?
Found it only works if you install 'iptables-persistent' package as well.
sudo apt-get install iptables-persistent netfilter-persistent
It will be saved in /etc/iptables/rules.v[4-6]
If you only install netfilter-persistent, it wont save any configuration
sudo apt install iptables-persistent
is enough. It will install netfilter-persistent
as dependency automatically.