IT lexicon › Networking › NPF

NPF

Networking På svenska → Updated: 2026-11-08
More info
Creator
Mindaugas Rasiukevičius
Released
2012
Type
Packet filter
License
BSD

NetBSD's packet filter, designed for multicore machines from day one, with rules compiled down to BPF bytecode.

For years NetBSD borrowed its firewalls — ipf and a port of pf — both written when a router had a single CPU. Mindaugas Rasiukevičius built NPF as the replacement, and it landed in NetBSD 6.0 in 2012. The npf.conf syntax looks a lot like pf's, but underneath the rules become BPF programs that bpfjit can compile to native code, and the state tables are built to be read without locks.

Configuration is loaded with npfctl and swapped atomically, so there is never a moment where half the new ruleset applies. NPF is far less famous than pf, which roughly mirrors NetBSD's standing in general: well engineered, portable and rarely discussed.

← Back to the lexicon