ezufw-0.0.9
توضیحات
UFW Wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | ezufw-0.0.9 |
| نام | ezufw |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marek Adam Gancarz |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ezufw/ |
| مجوز | - |
# EzUFW - wrapper for Uncomplicated Firewall
Package allows control UFW from python side.
## Table of contents
* [Installation](#Installation)
* [Description](#Description)
* [Usage](#Usage)
## 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
```
```
نحوه نصب
نصب پکیج whl ezufw-0.0.9:
pip install ezufw-0.0.9.whl
نصب پکیج tar.gz ezufw-0.0.9:
pip install ezufw-0.0.9.tar.gz