An api to change iptables rules
Python
Latest commit dc5fe27 Apr 22, 2013 learningoutcomes changed readme for better reading

README.md

if running on local machine please install ssh and openssh-server using package manager also add env host and env password in api/views file for sudo to work

usage:

curl -X POST http://127.0.0.1:8000/iptables/ -d "rule=-A INPUT -s 192.168.0.0/24 -j ACCEPT" -u user:password

curl -X POST http://127.0.0.1:8000/iptables/ -d "rule=-L" -u user:password