convert iptables commands within a script into a correspondig iptables-save script
output is written to stdout for maximum flexibilty
Author: Johannes Hubertz <johannes@hubertz.de> Date: 2014-06-16 version: 0.9.5 License: GNU General Public License version 3 or later
Have Fun!
this is for one type of tables
fill this line into this tabular
name is one of filter, nat, raw, mangle, tables is a list of tables in that table-class
some chaingroups in tables are predef: filter, nat, mangle, raw
put line into matching Chains-object
read file into Tables-object
all predefined Chains aka lists are setup as new here
printout nonempty tabulars in fixed sequence
main parses options, filnames and the like one option (-s) may be given: input-filename if none given, it defaults to: rules
this is for one type of tables
fill this line into this tabular
name is one of filter, nat, raw, mangle, tables is a list of tables in that table-class
some chaingroups in tables are predef: filter, nat, mangle, raw
put line into matching Chains-object
read file into Tables-object
all predefined Chains aka lists are setup as new here
printout nonempty tabulars in fixed sequence