How do I edit and persist iptables changes on Debian?
I can't find an iptables.conf file or anything in scripts yanking a config in.
I don't think Debian does it like that, but I tend to like it. You can set it up:
- iptables-save > /etc/myiptables.conf
and then in a startup script:
- iptables-restore < /etc/myiptables.conf.
I've seen where someone changed
so it had something like this in it:
iface eth0 inet dhcp
pre-up iptables-restore < /etc/myiptables.conf
but I haven't tried that myself.
Add a Comment
NOTE: Comments are moderated and will not show until approved.