ipv6 via tinc

Folkert van Heusden folkert at vanheusden.com
Wed Apr 14 18:57:59 CEST 2010


Hi,

At my provider (xs4all) I've got an ipv6 tunnel working. Now I would
like to distribute ipv6 via the tinc tunnel.

My tinc.conf:
------------
Name=server
AddressFamily=ipv4
Device=/dev/net/tun
PrivateKeyFile=/etc/tinc/fvhglobalnet/rsa_key.priv
GraphDumpFile=|/usr/bin/dot -Tpng -o /var/www/htdocs.keetweej.vanheusden.com/stats/tinc-fvh-network-graph.png
Mode=switch
KeyExpire=299
MACExpire=301
PingInterval=59
PingTimeout=6

My tinc-up is:
-------------
#! /bin/sh

/sbin/ifconfig $INTERFACE 172.16.0.1 netmask 255.240.0.0
/sbin/ifconfig $INTERFACE add 2001:888:13b3::1/64
/sbin/sysctl -w net.ipv6.conf.all.forwarding=1
/etc/rc2.d/S50radvd restart

And my /etc/radvd.conf is:
-------------------------
interface fvhglobalnet {
        AdvSendAdvert on;
        AdvHomeAgentFlag off;
        
        prefix 2001:888:13b3::/64 {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr off;
        };
};
-----------

Then, when I start tinc on a vpn-client I see the following traffic
coming through (at the server side):
mauer:/usr/local/var/open3600-spool# tcpdump ip6 -i fvhglobalnet -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on fvhglobalnet, link-type EN10MB (Ethernet), capture size 96 bytes
18:55:07.318963 IP6 fe80::c446:8ff:fea2:724c > ff02::2: ICMP6, router solicitation, length 16
18:55:09.288642 IP6 fe80::c446:8ff:fea2:724c > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28
18:55:09.302624 IP6 2001:888:13b3::1.5353 > ff02::fb.5353: 0[|domain]
18:55:10.304354 IP6 2001:888:13b3::1.5353 > ff02::fb.5353: 0[|domain]
18:55:11.322986 IP6 fe80::c446:8ff:fea2:724c > ff02::2: ICMP6, router solicitation, length 16
18:55:12.305431 IP6 2001:888:13b3::1.5353 > ff02::fb.5353: 0[|domain]
18:55:15.333328 IP6 fe80::c446:8ff:fea2:724c > ff02::2: ICMP6, router solicitation, length 16

But the other end doesn't seem to get an address!
What am I doing wrong?

fvhglobalnet Link encap:Ethernet  HWaddr C6:46:08:A2:72:4C  
          inet addr:172.16.0.3  Bcast:172.31.255.255  Mask:255.240.0.0
          inet6 addr: fe80::c446:8ff:fea2:724c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:4872 (4.7 Kb)  TX bytes:6321 (6.1 Kb)


Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


More information about the tinc mailing list