Networking & Firewall (Ss/Netstat/Iptables/Nftables/Curl)
Stop firewalld from silently nuking your ingress traffic
đź§© The Challenge
You finally spin up that microservice, everything looks green, but your local machine gets a connection refused. You’ve been staring at your code for an hour before realizing the firewall is just dumping your packets without a word.
đź’ˇ The Fix
Check the drop counter in nftables to see if your traffic is actually hitting the wall instead of reaching your app. It saves you from debugging the application logic when the kernel is just playing gatekeeper.
nft list counters
⚙️ Why It Works
Counting hits on specific drop rules lets you prove whether your firewall configuration is the one holding the door shut. It turns a guessing game into a quick confirmation of where the packets are actually dying.
🚀 Pro-Tip: If you aren’t using counters, add them to your ruleset now, or you’ll be debugging blindly next time the network goes dark.
Linux Tips & Tricks | © ngelinux.com | 11/30/2026
