All firewall rules are primarily applied to IPv4 traffic. In order to also apply these rules to IPv6, we need to ensure that the following entry is present in /etc/network/interfaces:
iface lo inet6 loopback
We also need to load the IPv6 driver into /etc/modules during boot. Simply add the following entry in /etc/modules:
ipv6