Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 823

OpenVPN setup with IPv6

$
0
0

I'm trying to setup openVPN server, but the connection from client doesn't reach tunel interface it's stuck at assigning IP address. From my ISP I get a static IPv6 address (2a03:ffff:ffff:ffff::/64) which is assigned to router's bridge interface.

For my server I have the following configuration:

dev tunproto udpifconfig 10.1.0.1 10.1.0.2ifconfig-ipv6 2a03:ffff:ffff:ffff::1 2a03:ffff:ffff:ffff::2push "route-ipv6 ::/0"port 1194

for client config:

dev tunproto udpifconfig 10.1.0.2 10.1.0.1ifconfig-ipv6 2a03:ffff:ffff:ffff::2 2a03:ffff:ffff:ffff::1remote 2a03:ffff:ffff:ffff:aaaa:aaaa:aaaa:aaaa 1194redirect-gateway ipv6 def1nobind

for network configuration:

iptables -A POSTROUTING -s 10.1.0.0/24 -o enp2s0 -t nat -j MASQUERADEiptables -A FORWARD -i tun0 -o enp2s0 -s 10.1.0.0/24 -m state --state NEW -j ACCEPTiptables -A FORWARD -i tun0 -m state --state ESTABLISHED,RELATED -j ACCEPTip6tables -A POSTROUTING -s 2a03:ffff:ffff:ffff::/64  -o enp2s0 -t nat -j MASQUERADEip6tables -A FORWARD -i tun0 -o enp2s0 -s 2a03:ffff:ffff:ffff::/64 -m state --state NEW -j ACCEPT ip6tables -A FORWARD -i tun0 -m state --state ESTABLISHED,RELATED -j ACCEPTnet.ipv6.conf.all.forwarding=1net.ipv4.ip_forward=1

I have disabled firewalls for testing purpose on debian and also on the router. I can see incoming traffic when I connect with the client in ethernet(enp2s0) interface, but nothing in tunel(tun0) interface.As remote address I'm using the ipv6 address that is assigned by router to debian's ethernet interface, not sure thou if that's correct. I can also ping this address.

Any help would be much appreciated.


Viewing all articles
Browse latest Browse all 823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>