Iptables – Where Netfilter-Persistent Saves Iptables Rules

iptables

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?

Best Answer

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

Related Question