Interview Prep/Linux/Networking, DNS and firewalls

After adding firewalld rules, they work until the next reboot and then disappear.

BeginnerTroubleshootingNetworking, DNS and firewalls
Answer

Likely causes → Rules were added at runtime without --permanent.

Diagnose →

sudo firewall-cmd --list-all
sudo firewall-cmd --permanent --list-all

Fix → sudo firewall-cmd --runtime-to-permanent, or add rules with --permanent then --reload.

Prevent → Manage firewall rules with config management (Ansible firewalld module with permanent: true, immediate: true).

All Linux questions Roadmap: Linux

More on Networking, DNS and firewalls