diff --git a/bin/netvm-topology.sh b/bin/netvm-topology.sh index 83ec920..868c55a 100755 --- a/bin/netvm-topology.sh +++ b/bin/netvm-topology.sh @@ -14,6 +14,7 @@ done iptables -t nat -L POSTROUTING -n 2>/dev/null | grep '10.201\.' || echo "(no netvm NAT rules on host)" echo "--- CDP bridges (per netns PREROUTING) ---" for ns in $(ip netns list 2>/dev/null | awk '{print $1}' | grep '^warp-'); do - redir=$(ip netns exec "$ns" iptables -t nat -L PREROUTING -n 2>/dev/null | grep -c REDIRECT || true) - echo "$ns: $redir REDIRECT rule(s)" + echo "$ns PREROUTING:" + ip netns exec "$ns" iptables -t nat -L PREROUTING -n --line-numbers 2>/dev/null | grep -E "REDIRECT|Chain" || echo " (empty)" + echo "$ns route_localnet: $(ip netns exec "$ns" sysctl -n net.ipv4.conf.all.route_localnet 2>/dev/null || echo ?)" done