Developed this "Remote firewall as a web service. REST API for iptables"
https://pypi.python.org/pypi/rfw
but later changed the concept to pull the firewall rules instead of pushing them.
Still some TODOs in the code for extra functionality but it worked well live.