Build a more secure network with PF.
Peter N. M. HansteenMarch 2026
A No-Nonsense Guide to the OpenBSD Firewall
Download Chapter 3: Into the Real World
The OpenBSD packet filter, PF, is central to the OpenBSD and FreeBSD network toolbox. With more services placing high demands on bandwidth and an increasingly hostile Internet environment, no sysadmin can afford to be without PF expertise.
The fourth edition of The Book of PF covers the most up-to-date developments in PF, including new content on IPv6, dual stack configurations, the “queues and priorities” traffic-shaping system, NAT and redirection, wireless networking, spam fighting, failover provisioning, logging, and more.
You’ll also learn how to:
The Book of PF is the essential guide to building a secure network with PF. With a little effort and this book, you’ll be well prepared to unlock PF’s full potential.
Covers OpenBSD 7.x, FreeBSD 14.x, and NetBSD 10.x
Author Bio
Peter N.M. Hansteen is a DevOps (formerly sysadmin) consultant and writer based in Bergen, Norway. A longtime Freenix advocate, Hansteen is a frequent lecturer on OpenBSD and FreeBSD topics. He also occasionally contributes articles to websites and magazines, and blogs on mainly networking related topics at https://bsdly.blogspot.com/. Hansteen was a participant in the original RFC 1149 implementation team. The Book of PF is an expanded follow-up to his very popular online PF tutorial (https://home.nuug.no/~peter/pf/).
Table of contents
Foreword to the First Edition
Acknowledgments
Introduction
Chapter 1: Building the Network You Need
Chapter 2: PF Configuration Basics
Chapter 3: Into the Real World
Chapter 4: Wireless Networks Made Easy
Chapter 5: Bigger or Trickier Networks
Chapter 6: Turning the Tables for Proactive Defense
Chapter 7: Traffic Shaping with Queues and Priorities
Chapter 8: Redundancy and Resource Availability
Chapter 9: Logging, Monitoring, and Statistics
Chapter 10: Getting Your Setup Just Right
Appendix A: Resources
Appendix B: A Note on Hardware Support
Index
View the Copyright page
View the detailed Table of Contents
View the Index
Reviews
"The 4th edition is a very welcome refresher for what has been the definitive work on firewall configuration on OpenBSD and FreeBSD."
— Florian Obser, OpenBSD developer
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Foundations of Cybersecurity, 2nd Edition | 0 | 3 | 07-05-2025 |
| 2 | Practical AI Security | 0 | 5 | 28-05-2025 |
| 3 | The Ghidra Book, 2nd Edition | 0 | 5 | 22-07-2025 |
| 4 | Red Team Engineering | 0 | 5 | 18-12-2024 |
| 5 | The Spacecraft Hacker's Handbook | 0 | 5 | 22-07-2025 |
| 6 | Evasion Engineering | 0 | 2 | 02-03-2026 |
| 7 | The (Un)Natural History of Malware | 0 | 5 | 02-03-2026 |
| 8 | Heavy Wizardry 101 | 0 | 5 | 18-12-2024 |
| 9 | Dissecting the Dark Web | 0 | 5 | 27-05-2025 |
| 10 | Red Teaming AI | 0 | 5 | 22-07-2025 |