The OpenWRT router was able to talk with other native IPv6 hosts (like ipv6.google.com) because the traffic was arriving encapsulated in IPv4 packets with source $remoteip4.
But when you talk IPv6 with other 6to4 hosts the $remoteip4 is always different. The following trivial patch fixes the problem. Note that is was implemented like this before in here: http://nuwiki.openwrt.org/oldwiki/IPv6_howto Saverio Index: 6scripts/files/6tunnel.init =================================================================== --- 6scripts/files/6tunnel.init (revision 19228) +++ 6scripts/files/6tunnel.init (working copy) @@ -16,11 +16,11 @@ config_get localip6 "$section" localip6 config_get prefix "$section" prefix - ip tunnel add $tnlifname mode sit remote $remoteip4 local $localip4 ttl 255 + ip tunnel add $tnlifname mode sit remote any local $localip4 ttl 255 ifconfig $tnlifname up ip addr add $localip6 dev $tnlifname - ip route add ::/0 dev $tnlifname - ip route add 2000::/3 dev $tnlifname + ip route add ::/0 via ::${remoteip4} dev $tnlifname + ip route add 2000::/3 via ::${remoteip4} dev $tnlifname ip -6 addr add $prefix dev $LAN } _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel