[PLUG] iptables Config' File

Jason Van Cleve jason at vancleve.com
Wed Nov 19 13:48:02 UTC 2003


Quick question on iptables, which I'm finally getting around to setting up on my laptop.  I'd like to create a more or less permanent and reusable configuration file, one I can modify for use on other machines.  I've heard of many people writing explicit scripts to configure the filter (iptables -b blah-blah; iptables -blah; . . .), but I also notice that iptables-save creates a formatted config' instead of actual iptables commands.

Is it wise to just use that formatted output as a portable config' file?  That is, to SCP it to another machine and load it there with iptables-restore (even just as a starting point)?  Maybe it would be better to write a script, so that I can compare it with other people's; but my distro' is set up to use iptables-restore at boot time, so maintaining a script could be awkward.

--Jason Van Cleve




More information about the PLUG mailing list