I need to query existing rules, as well as being able to easily add and delete rules. I haven\'t found any API\'s for doing this. Is there something that I\'m missing?
I know its a short term solution, per the netfilter discussion, but in the short term you can use iptc wrapped in python with this:
https://github.com/ldx/python-iptables
I played with it some in a recent project of mine and found it quite effective.