IPRoute rest api is used for remote control of routing tables on virtual machine / container. IPTable rest api is same as ip-route rest api used for remote control of ip tables on virtual machine / container.
REST API for ip tables forked from:
- api-iptables - REST API for iptables
These instructions will get you a copy of the project up and running on your local machine for development purposes.
pip install pyroute2
pip install -U jsonpickle
pip install Flask
go get -u github.com/gorilla/mux
go get -u github.com/oxalide/go-iptables
go get -u github.com/gorilla/handlers
cd iptables
go build -o iptables-api
cd iproute
flask run --host=IP
cd iptables
./iptables-api -ip IP
IP is IPv4 on which will be API listening