Debian (1)
IPTables (1)
Linux (1)

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:

and then in a startup script:

I've seen where someone changed

/etc/network/interfaces

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.

Comments

Add a Comment



NOTE: Comments are moderated and will not show until approved.