IPv6 and NAT

Sean Quaint squaint@mediaone.net
Sun, 03 Sep 2000 16:25:46 -0400


Hello,

I have a linux box ipchains to hide a couple hosts behind a cable
modem.  It runs only IPv4.  One of my private hosts is a Solaris 8 sparc
with IPv6 enabled.  I've run the perl script from freenet6.net, and have
now the following ip setup:

# ifconfig -a
le0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.100.11 netmask ffffff00 broadcast 192.168.100.255 ether
8:0:20:76:78:69
le0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2  ether
8:0:20:76:78:69 inet6 fe80::a00:20ff:fe76:7869/10
ip.tun0: flags=2200850<POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu
1480 index 3   inet tunnel src 24.30.58.147 inet6 fe80::181e:3a93/10 -->
fe80::ce7b:1f66
ip.tun0:1: flags=2200850<POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu
1480 index 3 inet6 3ffe:b00:c18:1fff::65b/128 --> 3ffe:b00:c18:1fff::65a

ip.tun0:2: flags=2200850<POINTOPOINT,RUNNING,MULTICAST,NONUD,IPv6> mtu
1480 index 3 inet6 3ffe:b00:c18:1fff::65b/128 --> 3ffe:b00:c18:1fff::65a

and my routing tables are:

# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.100.0        192.168.100.11        U        1      6  le0
224.0.0.0            192.168.100.11        U        1      0  le0
default              192.168.100.2         UG       1    184
127.0.0.1            127.0.0.1             UH       6  28863  lo0

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref
Use   If
--------------------------- --------------------------- ----- --- ------
-----
fe80::/10                   fe80::a00:20ff:fe76:7869    U       1      0
le0
ff00::/8                    fe80::a00:20ff:fe76:7869    U       1      0
le0
default                     fe80::a00:20ff:fe76:7869    U       1     17
le0
default                     3ffe:b00:c18:1fff::65a      UG      1      0

::1                         ::1                         UH      1      0
lo0


Now when I try to ping an IPv6 addr, I get no route to host:
 # ping -A inet6 ftp.ring.gr.jp
ICMPv6 Address Unreachable from gateway fe80::a00:20ff:fe76:7869
 for icmp6 from fe80::a00:20ff:fe76:7869 to 2001:240:3:2::1

I'm sure the NAT configuration has something to do with this.  But I'm
not sure what to do about it.

Thanks in advance,

Sean Quaint