I am trying to set up an IP6tables firewall on Linux and I basically want to start copying my IPv4 configuration.
One of my rules simply accepts all traffic to the localhost subnet:
iptables -A INPUT -s 127.0.0.0/8 -j ACCEPT
I am a little puzzled though what the equivalent for IPv6 is. Is it as simple as:
ip6tables -A INPUT -s ::/128 -m comment --comment localhost -j ACCEPT
Many sources on internet explain 127.0.0.1, but I am specifically looking for the 127.0.0.0/8 equivalent and I haven't been able to find confirmation yet.
BTW I would expect the
ip6tables -vnL counters to increment when I issue:
telnet -6 localhost 22
But that doesn't happen.