Hello,
I have a problem with my FreeBSD 10.1 server, that acts as OpenVPN gateway. It should act as ipv4 and ipv6 gateway for my clients. IPv4 is working very well, but since my clients have a native ipv6 connection, I need ipv6 working on my OpenVPN gateway, too.
So I configured ipv6 on my server itself:
I have got a ipv6 address from my hosting with an /64 subnet:
My Ethernet interface (re0) has the address
The ipv6 connection on my server itself works without problems.
IPv6 traffic goes in and out 
After that I added to my OpenVPN server config this lines:
(Is this enough??)
I read, that the last line causes, that all the traffic from my client is transmitted through the VPN connection.
After connecting my client to the server, the
ipv4 is working without problems:
But, ipv6 is making trouble:
So, I tried to ping my tun0 address on my server:
But I've got the same problem 
So, I think I forgot one main switch, or something like this. Perhaps I have to add a static route? But I don't know whether on the server side or on the client side?
The ipv6 configuration in my rc.conf looks like this:
Does anybody has an idea, what I have forgotten?
Cheers, Christian
I have a problem with my FreeBSD 10.1 server, that acts as OpenVPN gateway. It should act as ipv4 and ipv6 gateway for my clients. IPv4 is working very well, but since my clients have a native ipv6 connection, I need ipv6 working on my OpenVPN gateway, too.
So I configured ipv6 on my server itself:
I have got a ipv6 address from my hosting with an /64 subnet:
Code:
2a01:xxxx:xxxx:xxxx::2/64
Code:
2a01:xxxx:xxxx:xxxx::2:1
The ipv6 connection on my server itself works without problems.
ifconfig re0 looks like this:
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 00:1d:92:eb:82:7f
inet xx.xx.xx.xx netmask 0xffffffe0 broadcast xx.xx.xx.xx
inet6 fe80::xxx:xxxx:xxxx:xxxx%re0 prefixlen 64 scopeid 0x1
inet6 2a01:xxxx:xxxx:xxxx::2:[B][I]1[/I][/B] prefixlen 64
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
After that I added to my OpenVPN server config this lines:
(Is this enough??)
Code:
server-ipv6 2a01:xxxx:xxxx:xxxx::2:[B][I]1[/I][/B]/64
push "route-ipv6 2000::/3"
ifconfig tun0 looks like this:
Code:
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
inet6 fe80::xxxx:xxxx:xxxx:xxxx%tun0 prefixlen 64 scopeid 0x3
inet 10.8.0.1 --> 10.8.0.1 netmask 0xffffff00
inet6 2a01:xxxx:xxxx:xxxx::2:[B][I]3[/I][/B] prefixlen 64
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 1862
ifconfig [I][B]utun0[/B][/I] on my client looks like this:
Code:
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 10.8.0.2 --> 10.8.0.2 netmask 0xffffff00
inet6 fe80::xxxx:xxxx:xxxx:xxxx%utun0 prefixlen 64 scopeid 0xb
inet6 2a01:xxxx:xxxx:xxxx::2:[B][I]1002[/I][/B] prefixlen 64
nd6 options=1<PERFORMNUD>
Code:
PING google.de (xx.xx.xx.xx): 56 data bytes
64 bytes from xx.xx.xx.xx: icmp_seq=0 ttl=55 time=34.544 ms
64 bytes from xx.xx.xx.xx: icmp_seq=1 ttl=55 time=35.291 ms
64 bytes from xx.xx.xx.xx: icmp_seq=2 ttl=55 time=34.134 ms
64 bytes from xx.xx.xx.xx: icmp_seq=3 ttl=55 time=34.082 ms
Code:
ping6 google.de
PING6(56=40+8+8 bytes) 2a01:xxxx:xxxx:xxxx::2:[B][I]1002[/I][/B] --> 2a00:1450:4001:804::1018
^C
--- google.de ping6 statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
Code:
ping6 2a01:xxxx:xxxx:xxxx::2:[B][I]3[/I][/B]
PING6(56=40+8+8 bytes) 2a01:xxxx:xxxx:xxxx::2:[B][I]1002[/I][/B] --> 2a01:xxxx:xxxx:xxxx::2:[B][I]3[/I][/B]
^C
--- 2a01:xxxx:xxxx:xxxx::2:[B][I]3[/I][/B] ping6 statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
So, I think I forgot one main switch, or something like this. Perhaps I have to add a static route? But I don't know whether on the server side or on the client side?
The ipv6 configuration in my rc.conf looks like this:
Code:
ipv6_enable="YES"
ipv6_default_interface="re0"
ifconfig_re0_ipv6="2a01:xxxx:xxxx:xxxx::2:[B][I]1[/I][/B]/64"
ipv6_defaultrouter="fe80::1%re0"
gateway_enable="YES" # enables the gateway
ipv6_gateway_enable="YES" # enables ipv6 gateway
Cheers, Christian