jathanism / acl

Network access control list and firewall policy parsing library.
Other
24 stars 23 forks source link

Add iptables support to ACL parser #15

Open jathanism opened 11 years ago

jathanism commented 11 years ago

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

jathanism commented 11 years ago

And info on the iptables-save output: http://www.faqs.org/docs/iptables/iptables-save.html

jathanism commented 11 years ago

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