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
fabo
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
fabo
etc/sysconfig/iptables-config ??
If there isn’t one there…then you can make one I suppose
https://www.linuxquestions.org/questions/linux-networking-3/location-of-iptables-config-file-10037/#post39811
iptables-save > /etc/sysconfig/iptables
The folder doesn’t exist there but I created the iptables folder @/etc/iptables
https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently
Thanks for your help.
Kind regards
fabo
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.