PF.BOOT.CONF(5)
π
PF.BOOT.CONF(5) β file formats manual, but make it a whole vibe β¨
Okay bestie, welcome to the pf.boot.conf(5) page. No cap, this is the manual for the packet filterβs little pre-game setup, and itβs lowkey iconic. π«Ά
πΈ NAME πΈ
pf.boot.conf β the initial configuration for packet filter, bestie.
β¨ DESCRIPTION β¨
So the pf.boot.conf file is used as initial configuration for the pf(4) packet filter. It gets loaded before the network is configured by the rc.d(8) script network. The whole point? Protect the machine from possible attacks that could happen between the network configuration and the loading of the final ruleset. Itβs giving βsecurity guard who shows up early.β π
The syntax of this file is described in pf.conf(5). Go read that for the grammar situation, iykyk. π¦
π¨ Heads up, bestie: at the stage the configuration is loaded, the network interface(s) do not have an IP address yet. So you cannot use rules that derive addresses from an interface β for example: pass out from any to fxp0. Literally not available at that point. π
π FILES π
/etc/defaults/pf.boot.confβ default initial ruleset file./etc/pf.boot.confβ override of the default initial ruleset file.
π§ EXAMPLES π§
When using NFS (e.g. diskless situations), youβll also need the following rules in addition to the default rules to unblock NFS:
scrub in all no-df
pass in proto udp from any port { 111, 2049 } to any
pass out proto udp from any to any port { 111, 2049 }
π₯ SEE ALSO π₯
π«Ά Sign-off bestie: source/version is Debian, date is August 17, 2005 β protect that machine and slay, bye! π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2005 Peter Postma <peter@NetBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms