Affected versions: Debian 13

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Firewall policy resets after reboot, exposing services unexpectedly or breaking intended traffic controls.

Environment & Reproduction

Debian 13 host with runtime nft rules loaded manually but not persisted via configuration files.

Root Cause Analysis

Rules exist in kernel state only and are not loaded by nftables.service from /etc/nftables.conf at boot.

Quick Triage

Confirm service enablement and inspect active vs saved ruleset differences.

Step-by-Step Diagnosis

Compare nft list ruleset output with on-disk policy and boot-time service logs.

Illustrative mockup for debian-13 β€” nftables_persistence_diag
Firewall rules missing after reboot β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Persist rules to /etc/nftables.conf, enable nftables.service, and validate rule load on reboot.

Still having issues? Our IT Consulting team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for debian-13 β€” nftables_persistence_fixed
Persistent nftables policy loaded at boot β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Manage policy with configuration management templates and controlled staged rollouts.

Verification & Acceptance Criteria

Post-reboot ruleset matches intended policy and all mandatory chains/counters are present.

Rollback Plan

Restore previous firewall config file and restart nftables to revert to known-good behavior.

Prevention & Hardening

Use CI checks on firewall files and boot validation probes for policy persistence.

Related issues include iptables-nft compatibility confusion and missing default deny chains.

Related tutorial: View the step-by-step tutorial for Debian 13.

View all Debian 13 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Debian nftables service documentation and migration notes from legacy iptables setups.

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.