UFW Wrapper
Project description
EzUFW - wrapper for Uncomplicated Firewall
Package allows control UFW from python side.
Table of contents
Installation
pip install ezufw
Description
EzUFW is based on class. To manipulate UFW (iptables) rules first initialize the object and execute its methods.
List of methods:
enable()
disable()
rules() # get all registered rules
execute(*cmd, force=False) # execute command
reset(default_policies=True, force=True) # reset UFW setup and apply basic policies by default
delete_by_port(*ports) # delete rules which are related to the given ports
delete_by_ip(*ip_address) # delete rules which are related with given IPs
Usage
from ezufw import EzUFW
ufw = EzUFW()
Example 1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ezufw-0.0.6.tar.gz
(4.5 kB
view hashes)
Built Distribution
ezufw-0.0.6-py3-none-any.whl
(4.5 kB
view hashes)