How to use the Python UFW (Uncomplicated Firewall) API in Ubuntu? -


I use UFW on Ubuntu 12.04 to allow and reject IP addresses from the command line.

How do I use the API to do the following functions in Python?

$ sudo ufw status $ sudo ufw from 207.46.232.182 Allow

Currently I just make system calls from Python.

Is there a web page or blog that describes the use of APIs?


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -