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.
More on Networking, DNS and firewalls
`curl http://10.0.1.20:8080` returns `curl: (7) Failed to connect to 10.0.1.20 port 8080: Connection refused`.BeginnerThe same request instead hangs and ends with `curl: (28) Failed to connect to 10.0.1.20 port 8080 after 130000 ms: Connection timed out`. How is this different from "refused"?Beginner`ping google.com` fails with `ping: google.com: Temporary failure in name resolution`, but `ping 8.8.8.8` works.Beginner`dig api.internal` works, but the application and `curl` fail with `Could not resolve host: api.internal`.Intermediate`/etc/resolv.conf` changes you made disappear after a reboot or a few minutes.BeginnerDNS lookups take exactly 5 seconds before succeeding.Intermediate