Interview Prep/Linux/Networking, DNS and firewalls

A newly added iptables rule to allow port 8080 has no effect.

IntermediateTroubleshootingNetworking, DNS and firewalls
Answer

Likely causes → Rule order: it was appended (-A) after a catch-all REJECT/DROP; or firewalld/nftables manage the real ruleset and your iptables rule went to a different table (iptables-nft vs legacy).

Diagnose →

sudo iptables -L INPUT -n --line-numbers -v
sudo nft list ruleset | less
systemctl is-active firewalld nftables ufw

Fix → Insert before the reject: iptables -I INPUT 5 -p tcp --dport 8080 -j ACCEPT, or better, use the active manager (firewall-cmd, ufw, nft config).

Prevent → Use one firewall manager per host; never mix them.

All Linux questions Roadmap: Linux

More on Networking, DNS and firewalls