I'm very new to OpenVPN. I got an IPv6 only internet provider, and because the vpn solution integrated in my router didn't support IPv6 VPN I installed OpenVPN via PiVPN on a Raspberry Pi.
Connection from outside are working very well, but as long the openvpn service is working, I can't connect to the pi from other devices via IPv6, only via IPv4:
Code: Select all
Sorens-Air:~ pattyland$ ssh -v jarvis
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to jarvis [2a02:908:4f2:5120:****] port 22.
debug1: connect to address 2a02:908:4f2:5120:**** port 22: Operation timed out
debug1: Connecting to jarvis [192.168.****] port 22.
debug1: Connection established.
I guess this the important part of my config:
Code: Select all
dev tun-ipv6
proto tcp6
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server.crt
key /etc/openvpn/easy-rsa/pki/private/server.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
server-ipv6 2a02:908:4f2:5120::/64
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OPenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.178.0 255.255.255.0"
# Set your primary domain name server address for clients
push "dhcp-option DNS6 fd00:0:0:0:ca0e:****"
push "dhcp-option DNS 192.168.178.1"
push "dhcp-option DOMAIN fritz.box"
#push "dhcp-option DNS 8.8.4.4"
Greets, pattyland