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.9.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ezufw-0.0.9-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file ezufw-0.0.9.tar.gz.
File metadata
- Download URL: ezufw-0.0.9.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30c5066be830f144f8808beeea1ac4e80429228ca5008ee16b7480ca3574b08a
|
|
| MD5 |
f0b11338a23e0e60cf073fb850a1b41c
|
|
| BLAKE2b-256 |
d6ef38446d66b36eafd9ba6f09ad2cf886f398df3e46ffc9bccb06b52a1b16fb
|
File details
Details for the file ezufw-0.0.9-py3-none-any.whl.
File metadata
- Download URL: ezufw-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bb02c1ec46de647c986b6790b8bf354b724891040c7a50a1a8104f0a799f67
|
|
| MD5 |
c907edc23d7b0f473cb02546f7585b92
|
|
| BLAKE2b-256 |
82c82dbca3c8f109a676f56c23ca15497894ee415bcaf13a482fd5df042c6473
|