EuroBSDCon 2026

Network Management with the PF Packet Filter Toolset on OpenBSD and FreeBSD
2026-09-11 , D.2.12

The OpenBSD Packet Filter (PF) is at the core of the network management toolset available to professionals working with the BSD family of operating systems.

Understanding the networking toolset is essential to building and maintaining a functional envirionment. The present session will both teach principles and provide opportunity for hands-on operation of the extensive network tools available on OpenBSD and sister operating systems in a lab environment. Participants will be performing practical excercises in their choice of OpenBSD and FreeBSD environments. Basic to intermediate understanding of TCP/IP networking and basic Unix command line skills are expected and required for this session.

Topics covered include

The basics of and network design and taking it a bit further

Building rulesets

Keeping your configurations readable and maintainable

Seeing what your traffic is really about with your friend tcpdump(8)

Filtering, diversion, redirection, Network Address Translation

Handling services that require proxying (ftp-proxy and others)

Address tables and daemons that interact with your setup through them

The whys and hows of network segmentation, DMZs and other separation techniques

Tackling noisy attacks and other pattern recognition and learning tricks

Annoying spammers with spamd

Basics of and not-so basic traffic shaping

Monitoring your traffic

Resilience, High Availability with CARP and pfsync

Troubleshooting: Discovering and correcting errors and faults

Your network and its interactions with the Internet at large

Common mistakes in internetworking and peering

Keeping the old IPv4 world in touch with the new of IPv6

The tutorial is lab centered and fast paced. Time allowing and to the extent necessary, we will cover recent developments in the networking tools and variations between the implementations in the OpenBSD and FreeBSD operating systems.

Participants should bring a laptop for the hands on labs part and for note taking. The format of the session will be compact lectures interspersed with hands-on lab excercises based directly on the theory covered in the lecture parts.

This session is an evolutionary successor to previous sessions. Slides for the most recent version of the PF tutorial session are up at https://nxdomain.no/~peter/pf_fullday.pdf, to be updated with the present version when the session opens.

Peter N. M. Hansteen is a devops and network security consultant, writer, and sysadmin based in
Bergen, Norway. In addition to writing The Book of PF (4th ed forthcoming), Hansteen is longtime free unixlikes advocate, a frequent lecturer on OpenBSD and FreeBSD topics, an occasional contributor tech magazines and websites and co-organizer of Unix user groups and BSD-themed conferences. Fun fact: Before setting out to write about PF and BSDs in general, Hansteen was a participant in the original RFC 1149 implementation team.

This speaker also appears in: