IT lexicon › Networking › Netgraph

Netgraph

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

FreeBSD's system for building network stacks out of small kernel modules wired together into a graph while the system runs.

Julian Elischer and Archie Cobbs built it at Whistle Communications for the company's InterJet appliances, and it landed in FreeBSD in 1999. Each node does one job — PPPoE, VLAN tagging, an Ethernet bridge, a packet counter — and nodes connect through named "hooks". With ngctl you can rewire the graph without a reboot or a new kernel.

For years this was how FreeBSD routers spoke PPPoE to broadband providers, and firewall distributions such as pfSense leaned on it. The idea resembles what Linux later got from eBPF — programmable packet handling in the kernel — except Netgraph bet on ready-made building blocks rather than user-supplied code.

← Back to the lexicon