Hi, I'm in Germany and have a Client with nativ IPv4 and IPv6. The Server is in the US and has IPv4 and IPv6 too. Because our campus-network doen't allow outgoing ipv4-udp, so i use IPv6 to reach the server but the vpn payload is ipv4-based.
But now, i have the problem, i "surf" with a us-ipv4 and german-ipv6 adress. And the first Services use this info to refuse my connection 🙁
So, i want to route my ipv6 traffic through the vpn-server too, but not have any idea how to do this.
By actually server-config:
port 11950
comp-lzo
proto udp6
dev tun
ca /etc/openvpn/easy-rsa2/keys/ca.crt
cert /etc/openvpn/easy-rsa2/keys/server.crt
key /etc/openvpn/easy-rsa2/keys/server.key # This file should be kept secret
dh /etc/openvpn/easy-rsa2/keys/dh1024.pem
server 192.168.42.0 255.255.255.0
server-ipv6 FD00:abcd:abcd:1::/64
ifconfig-pool-persist ipp_tun.txt
push "redirect-gateway def1"
push "redirect-gateway-ipv6 def1"
client-to-client
keepalive 10 120
cipher AES-256-CBC
push "dhcp-option DNS 8.8.8.8"
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn_tun.log
;log-append openvpn.log
verb 3
and client-config:
client
dev tun
dev-node VPN
proto udp6
remote usvpn.mydomain.de #IPv6-Address
port 11950
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\usvpn\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\usvpn\\midgard.crt"
key "C:\\Program Files\\OpenVPN\\config\\usvpn\\midgard.key"
comp-lzo
cipher AES-256-CBC
;mute 20
Thanks for your help