Skip to main content

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)

Uploaded Source

Built Distribution

ezufw-0.0.6-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page