IT lexicon › Networking › pfsync

pfsync

Networking På svenska → Updated: 2026-11-08

The interface that lets two OpenBSD firewalls share a state table, so open connections don't notice when one of them goes down.

A stateful firewall remembers every connection it has let through. Swap firewalls mid-transfer and the new one knows nothing about the connection and drops its packets. pfsync, introduced in OpenBSD 3.3 in 2003, solves this by sending every new, changed and expired entry in pf's state table to its peers, as IP protocol 240 over a dedicated interface.

With CARP a year later the pairing was complete: CARP moves the address, pfsync makes sure the new owner already knows what's going on. The protocol has no authentication or encryption, so the advice is a dedicated cable between the boxes or IPsec. Running pfsync on the regular network is an open invitation for anyone to write your firewall state for you.

← Back to the lexicon