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 - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

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