π ~1 min read
Table of contents
Symptom & Impact
Expected firewall policy is missing after reboot, exposing services or blocking intended traffic.
Environment & Reproduction
Rules were loaded manually but not enabled for boot startup.
pfctl -sr
grep -E "pf_enable|pf_rules" /etc/rc.conf
Root Cause Analysis
PF service is disabled in rc.conf or points to invalid rules file path.
Quick Triage
Confirm pf status and syntax-check current ruleset file.
pfctl -si
pfctl -nf /etc/pf.conf
Step-by-Step Diagnosis
Audit startup configuration and boot-time firewall logs.
service pf onestatus
cat /etc/rc.conf
tail -n 120 /var/log/messages

Solution – Primary Fix
Enable PF permanently and reload validated rules.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sysrc pf_enable=YES
sysrc pf_rules=/etc/pf.conf
service pf restart

Solution – Alternative Approaches
Use ipfw if your environment standard mandates ipfw policy tooling.
Verification & Acceptance Criteria
Ruleset remains active across reboot and traffic policy behaves as intended.
reboot
pfctl -sr
Rollback Plan
Disable PF temporarily from console if lockout occurs and restore prior rules file.
pfctl -d
Prevention & Hardening
Validate rule syntax in CI and keep an out-of-band management access path.
Related Errors & Cross-Refs
pf not enabled, cannot load ruleset, syntax error in pf.conf.
Related tutorial: View the step-by-step tutorial for freebsd-15.
View all freebsd-15 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
pf.conf(5), pfctl(8), and FreeBSD firewall handbook sections.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.