[Solved] iptables

I’ve installed iptables on dietpi but I can’t locate the iptables config file. It doesn’t exist @/etc/iptables.

Any idea where the config file is stored?

Kind regards


etc/sysconfig/iptables-config ??

If there isn’t one there…then you can make one I suppose

iptables-save > /etc/sysconfig/iptables

The folder doesn’t exist there but I created the iptables folder @/etc/iptables


Thanks for your help.

Kind regards


By, by default iptables creates non-persistent rules, using netfilter kernel module. ifupdown or 3rd party extension packages can be used to workaround this by applying the rules on boot/interface load.