Firewall Rule Tracing

Find where a Linux firewall drops traffic: "connection times out but the port is open", "nftables rule not matching", "Docker bypasses my iptables rules", "ufw and firewalld both installed". Identify the framework really in force first (nft list ruleset is the truth; iptables may be the nft shim; firewalld, ufw, Docker and kube-proxy all inject rules), then trace one packet instead of reading rules: a meta nftrace set 1 rule with nft monitor trace, or iptables -t raw -j TRACE, plus counters read before and after a test connection. Check hook order and priorities, policies, conntrack state, rp_filter and DOCKER-USER. Change with a timed rollback and a second session. Use for any silent drop. Not for writing a baseline (host-hardening), a rule that already cut you off (linux-lockout-recovery), MikroTik (routeros-config) or large packets only (mtu-blackhole-hunt).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 1aed9f5b05

Frequently asked questions

npx get-skill add greenblacked/firewall-rule-tracing