I have a vps with a /64 IPv6 prefix and I'm trying to use it to bring IPv6 connectivity to a host using openvpn.
I first used the layer-2 "tap" method, I created a permanent tap tunnel and configured radvd on that interface.
The client could obtain an ipv6 address, and packets arrived at the server, but I didn't configure routing or something else correctly I think, so on the server's eth0 interface I would see
2a01:7f00::f03c:91ff:fedb:6541 > ff02::1:ff86:a71: ICMP6, neighbor solicitation, who has 2a01:7f00::2daa:ad77:2286:a71, length 32
I decided to try with tun.
This is my conf (with a minor edit to the ipv6 prefix)
dev tun0
tun-ipv6
server-ipv6 2a01:7f00::/112
server 10.0.0.0 255.255.255.0
push "route-ipv6 2a01:7f00::/64"
comp-lzo
status openvpn-status.log
log-append /var/log/openvpn.log
verb 3
tls-server
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh2048.pem
the client obtains an IPv6 address, but you can see that something is wrong:
2a01:7f00::1000/64
it obtains a /64 address when I wanted a /112 subnet. And when I try "ping6 google.com" I obtain "Network is unreachable"
I'm new to IPv6, what I'm doing wrong? All of the examples I see are with a server having a /48 prefix, and delegating a /64 prefix to the client.