Class to store IPTables chains
Class to read and store iptables rules
Class to store IPTables rules
Returns the iptables command line that can be used to apply the rule. Takes ‘output_template’ as an argument which is the Mako template to be used when producing the iptables line.
Why use a different template? The default template has logic in it to cover just about every permutation of an iptables rule. If you know ahead of time that your rules will only contain a specific subset of command line switches you can use a template with less permutations to speed up the process considerably.
Class to store Table() objects (one of ‘filter’, ‘nat’, ‘mangle’ or ‘raw’)