Pure-Python module for managing OpenBSD's Packet Filter
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](http://www.openbsd.org/faq/faq15.html).
Download the source code from [GitHub](https://github.com/dotpy/py-pf) and run the install script:
# python setup.py install
To run the test suite, just run:
# python setup.py test
A detailed description of the PF module and its classes is available at http://www.kernel-panic.it/programming/py-pf/.
A brief list of references, documentation and books about Python, OpenBSD and Packet Filter can be found at http://www.kernel-panic.it/software/py-pf/resources.html.
Copyright (c) 2008-2014 Daniele Mazzocchio (firstname.lastname@example.org).
Licensed under BSD license (see LICENSE.md file).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.