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.

1. Installation notes

Download the source code from GitHub and run the install script:

# python install

To run the test suite, just run:

# python test

2. Tutorial

A detailed description of the pf module and its classes is available here. For a brief list of references, documentation and books about Python, OpenBSD and Packet Filter, please refer to the resources section.

Valid XHTML 1.0!

Valid CSS!

Designed by