Skip to main content

Pure-Python module for managing OpenBSD's Packet Filter

Project description

py-pf is a pure-Python module for managing OpenBSD’s Packet Filter. It aims to add powerful and flexible scripting capabilities to PF, making integration with third-party software (like IDS, web-based configuration interfaces or custom management scripts) much easier.

It runs on Python 2.7, which is available through OpenBSD’s [packages and ports system](


Download the source code from [GitHub]( and run the install script:

# python install


To run the test suite, just run:

# python test


A detailed description of the PF module and its classes is available at

A brief list of references, documentation and books about Python, OpenBSD and Packet Filter can be found at


Copyright (c) 2008-2014 Daniele Mazzocchio (

Licensed under BSD license (see file).

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

py-pf-0.1.2.tar.gz (39.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page