Skip to main content.

The OpenBSD PF Packet Filter Book:
PF for NetBSD, FreeBSD, DragonFly, and OpenBSD

Order The OpenBSD PF Packet Filter Book from Lulu, Amazon, or your favorite book store.

Stateful packet filtering, Network Address Translation (NAT), port forwarding, passive operating system fingerprinting, packet queueing and Quality of Service, load balancing, and redundant firewalls are available with OpenBSD's PF system. PF is known to be a proven, high-performance, and innovative packet filtering system. The PF sub-systems and related interfaces have been ported to the NetBSD, FreeBSD and DragonFly operating systems. This book introduces the common features and capabilities of PF and its related tools with many examples and steps for configuring and using PF on these operating systems. The book includes ample cross-referencing and a detailed index for easy research and reading.

Purchase The OpenBSD PF Packet Filter Book from Lulu, Amazon, or your favorite book store.

The book is based on the freely-available BSD-licenced PF FAQ as provided by the OpenBSD project. It includes many grammar, spelling, punctuation, and formatting fixes, and numerous content improvements for (hopefully) easier reading and comprehension. Many fixes were sent to the original copyright owners. In addition to the detailed proofreading, editing and reorganization, this PF book provides new chapters and more content to better explain and further document the use of the PF-related tools and capabilities, especially for non-OpenBSD systems. Differences between the behaviour, setup and usage on the different operating systems are covered. And some old or deprecated features or syntax are covered as needed for the non-OpenBSD systems. Some of the new content includes: PF installation and setup specific to NetBSD, FreeBSD, and DragonFly; new graphical diagrams; and using the spamd suite with PF. It has approximately 15- to 20-percent new content.

The 21 chapter book is available in a convenient printed format using standard perfect binding. Numerous cross-references were added and the book includes an eight page index with over 435 terms and concepts indexed for easy study.


A portion of the profit from the sales of this book are sent to the OpenBSD project. You can learn more about donating to OpenBSD at Reed Media Services actively donates money and time to various BSD and open source projects.



The publisher welcomes feedback. If you have any suggestions or comments about the book or would like to report an error, please email us at