After hardening `ip6tables` to "deny all except SSH and HTTPS", IPv6 connectivity works for a few minutes and then dies.
IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer
Likely causes → IPv6 depends on ICMPv6 for Neighbor Discovery (the IPv6 replacement for ARP: neighbor solicitation/advertisement, router advertisement) and for Path MTU Discovery (Packet Too Big). Blocking ICMPv6 lets cached neighbors work until they expire, then nothing resolves.
Diagnose →
sudo ip6tables -S INPUT
ip -6 neigh show # entries go FAILED / INCOMPLETE
sudo tcpdump -ni eth0 icmp6
Fix → Allow the essential ICMPv6 types:
sudo ip6tables -I INPUT -p ipv6-icmp --icmpv6-type neighbour-solicitation -j ACCEPT
sudo ip6tables -I INPUT -p ipv6-icmp --icmpv6-type neighbour-advertisement -j ACCEPT
sudo ip6tables -I INPUT -p ipv6-icmp --icmpv6-type router-advertisement -j ACCEPT
sudo ip6tables -I INPUT -p ipv6-icmp --icmpv6-type packet-too-big -j ACCEPT
(Or simply allow all ICMPv6, which most guidance accepts.)
Prevent → Base IPv6 firewall policy on RFC 4890 recommendations and keep IPv4/IPv6 rules reviewed together (nftables inet family helps).
More on Containers, Kubernetes, IPv6 and packet captures
After someone ran `iptables -F` (or restarted firewalld), all Docker containers lost outbound connectivity.Intermediate`docker run -p 8080:80 myapp` starts fine, but `curl localhost:8080` returns `Connection reset by peer`.BeginnerTwo containers on the default bridge network can't reach each other by container name.Beginner`docker run -p 80:80 nginx` fails with `Bind for 0.0.0.0:80 failed: port is already allocated`.BeginnerA new Kubernetes node stays `NotReady` with `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.IntermediateA Service returns `Connection refused` / nothing, and `kubectl get endpoints myapp` shows `<none>`.Beginner