Open jathanism opened 11 years ago
And info on the iptables-save
output:
http://www.faqs.org/docs/iptables/iptables-save.html
Turns out Salt has an iptables parsing library that might actually be pretty useful: https://github.com/saltstack/salt/blob/develop/salt/modules/iptables.py
See python-netfilter (which actually has a parser): https://github.com/jlaine/python-netfilter
Or python-iptables (which is a low-level lib): https://github.com/ldx/python-iptables
See IPTables::Parse (Perl) for regex patterns: http://www.cipherdyne.org/modules/IPTables-Parse.html