Hi,
anyone has a running config for IPv6 and OpenVPN and is able to assist me with my problem?
I'm running a server at ovh with an eth0 interface and three assigned IPv6 addresses:
inet6 addr: 2001:dead:1:beef::2/64 Scope:Global
inet6 addr: 2001:dead:1:beef::3/64 Scope:Global
inet6 addr: 2001:dead:1:beef::4/64 Scope:Global
The default route at ovh is used as:
2001:dead:1:beff:ff:ff:ff:ff
and this IPv6 setup is working without a problem. Now i'm trying to add IPv6 to my working IPv4 OpenVPN setup. This is my config of OpenVPN (only the important IPv6 part):
dev tun
tun-ipv6
server-ipv6 2001:dead:1:beef::/64
push "route-ipv6 2001:dead:1:beef::/64"
push "route-ipv6 2000::/3"
push "route-ipv6 0::0/0"
and the according ip6tables rules:
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
ip6tables -A FORWARD -o eth0 -i tun0 -s 2001:dead:1:beef::/64 -m conntrack --ctstate NEW -j ACCEPT
ip6tables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
With that setup a tun0 with the ip adress:
inet6 addr: 2001:dead:1:beef::1/64 Scope:Global
is created and the first client gets and ip address of:
inet6 addr: 2001:dead:1:beef::1000/64 Scope:Global
Now this client is able to reach the ip adresses of eth0 and tun0 via ping6 but can't reach anything outside of this server. I'm stuck in how to debug this and hope someone can give me any hints on how to get my client to reach the outside world.
Thanks in advance for a reply. Please let me know if you need any further informations.