Iptables – What are the IPV6 reserved address spaces

iptablesipv6networking

I'm converting my good old IPV4 based iptables firewall script and would like to substitute the CLASS A/B/C/D/E reserved address spaces to the ones found in IPV6. My goal is to deny any packets that originate from these addresses, since these cannot reach the public net, so they must be spoofed.

I have found these so far, are there any more reserved spaces, where no data could come towards an IPV6 webserver?

Loopback ::1

Global Unicast (currently) 2000::/3

Unique Local Unicast FC00::/7

Link Local Unicast FE80::/10

Multicast FF00::/8

Best Answer

  • ::/8 - Reserved - deprecated IPv4 Compatible is ::/96
  • 0200::/7 - Reserved
  • 0400::/6 - Reserved
  • 0800::/5 - Reserved
  • 1000::/4 - Reserved
  • 2001:db8::/32 - Documentation
  • 2002::/24 - 6to4 0.0.0.0/8
  • 2002:0a00::/24 - 6to4 10.0.0.0/8
  • 2002:7f00::/24 - 6to4 127.0.0.0/8
  • 2002:a9fe::/32 - 6to4 169.254.0.0/16
  • 2002:ac10::/28 - 6to4 172.16.0.0/12
  • 2002:c000::/40 - 6to4 192.0.0.0/24
  • 2002:c0a8::/32 - 6to4 192.168.0.0/16
  • 2002:c612::/31 - 6to4 198.18.0.0/15
  • 2002:c633:6400::/40 - 6to4 198.51.100.0/24
  • 2002:cb00:7100::/40 - 6to4 203.0.113.0/24
  • 2002:e000::/20 - 6to4 224.0.0.0/4
  • 2002:f000::/20 - 6to4 240.0.0.0/4
  • 4000::/3 - Reserved
  • 6000::/3 - Reserved
  • 8000::/3 - Reserved
  • a000::/3 - Reserved
  • c000::/3 - Reserved
  • e000::/4 - Reserved
  • f000::/5 - Reserved
  • f800::/6 - Reserved
  • fc00::/7 - Unique Local
  • fe00::/9 - Reserved
  • fe80::/10 - Link Local
  • fec0::/10 - Site Local (deprecated, RFC3879)
  • ff00::/8 - Multicast

See RFC 5156 and IANA's reservation list for reference.

Related Topic