Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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-2015 Daniele Mazzocchio (

Licensed under BSD license (see file).

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
py-pf-0.1.4.tar.gz (39.4 kB) Copy SHA256 Checksum SHA256 Source May 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting