AYIYA/FreeBSD
Shadow Hawkins on Thursday, 23 September 2010 11:16:10
I have a working tunnel to my home FreeBSD router/firewall/server, but I'm confused how to setup the subnet I have been assigned, so the internal pc's can go ipv6.
I had ipv6 working from inside, when I was connected to gateway6, but I decided to change to sixxs, to be on the same pop as my work-tunnel.
I'm also confused over I have both gif0 and tun0.
Is there an entry in the FAQ, I have missed?
My ifconfig is:
#External nic = rl0
rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=3808<VLAN_MTU,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether 00:10:a7:07:f6:2a
inet6 fe80::210:a7ff:fe07:f62a%rl0 prefixlen 64 scopeid 0x2
inet 87.60.192.123 netmask 0xfffffff0 broadcast 87.60.192.127
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
tunnel inet 87.60.192.123 --> 93.158.77.42
inet6 fe80::21c:c0ff:fef2:ed1e%gif0 prefixlen 64 scopeid 0x5
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
options=1<ACCEPT_REV_ETHIP_VER>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
options=80000<LINKSTATE>
inet6 fe80::21c:c0ff:fef2:ed1e%tun0 prefixlen 64 scopeid 0x6
inet6 fe80::14d8:dd00:c5:2%tun0 prefixlen 64 scopeid 0x6
inet6 2001:16d8:dd00:c5::2 --> 2001:16d8:dd00:c5::1 prefixlen 128
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 1366
#internal nic=
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
ether 00:1c:c0:f2:ed:1e
inet 192.168.5.11 netmask 0xffff0000 broadcast 192.168.255.255
inet6 fe80::21c:c0ff:fef2:ed1e%em0 prefixlen 64 scopeid 0x1
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet 100baseTX <full-duplex>
status: active
Tunnel is dkcph01 - Phoneraayiya2001:16d8:dd00:c5::2
Subnet is 2001:16d8:dd69::/48 endpoint2001:16d8:dd00:c5::2
I guess I have to start rtadvd, but I get the message that the machine is not a router.
AYIYA/FreeBSD
Jeroen Massar on Thursday, 23 September 2010 11:45:47 I'm also confused over I have both gif0 and tun0.
gif0 == protocol 41 tunnels aka static tunnels
tun0 == tun/tap interface, which can be used by all kinds of programs to implement their own protocol, AICCU uses it for AYIYA, OpenVPN uses it for OpenVPN etc.
If you have an AYIYA tunnel, you don't need a gif0 interface.
I guess I have to start rtadvd, but I get the message that the machine is not a router.
You need to enable forwarding:
sysctl -q -w net.inet6.ip6.forwarding=1
or enable it in /etc/rc.conf or /etc/sysctl.conf
AYIYA/FreeBSD
Shadow Hawkins on Thursday, 23 September 2010 12:02:08
I have now removed gif from rc.conf
And is setting the subnet simply assigning an adress to the internal nic:
ipv6_ifconfig_em0="2001:16d8:dd69::1 prefixlen 64" ?
(Alas, I can't reboot remotely, because half of the time, the machine hangs at boot-time because of an external usb disk)
AYIYA/FreeBSD
Jeroen Massar on Thursday, 23 September 2010 12:10:15
It should be almost that simple yes; you do need to also do some rtadvd config though, that part is in the FAQ.
You do not have to reboot for this of course, just use:
ifconfig em0 inet6 2001:16d8:dd69::1 prefixlen 64
and config and restart rtadvd.
Posting is only allowed when you are logged in. |