Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

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).

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures