Ubuntu 22.04 has introduced a new feature to the iptables firewall that affects logging rules for IPv6 packets. Specifically, when adding a logging rule for IPv6 packets using the sudo ip6tables command, no logs are being generated. This issue arises even when multiple rules are added, but it appears that only the first rule is affected. This article will discuss the problem in detail and explore potential solutions.
Background: iptables and IPv6 Logging
The iptables firewall is a powerful networking utility that enables system administrators to manage network traffic on Linux systems. The tool has long supported the ability to log packets that match certain rules, which is useful for debugging and network security purposes. However, the IPv6 logging functionality has introduced some unexpected behavior in Ubuntu 22.04.