openvpn dns split tunnelling issue when multiple simultaneous vpn connections

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
hsvlz
OpenVpn Newbie
Posts: 1
Joined: Thu Sep 21, 2017 2:50 pm

openvpn dns split tunnelling issue when multiple simultaneous vpn connections

Post by hsvlz » Thu Sep 21, 2017 2:51 pm

I am trying to allow my mac computer to resolve dns on 2 different openvpn servers simultaneously.

server 1 is configured with:
server

push "dhcp-option DOMAIN internal.lan1"
push "dhcp-option DNS 10.31.0.2"
push "route 10.0.0.0 255.0.0.0 vpn_gateway"
push "route 172.16.0.0 255.240.0.0 vpn_gateway"
push "route 192.168.0.0 255.255.0.0 vpn_gateway"


server 2 is configured with:
server

push "dhcp-option DOMAIN internal.lan2"
push "dhcp-option DNS 10.32.0.2"
push "route 10.0.0.0 255.0.0.0 vpn_gateway"
push "route 172.16.0.0 255.240.0.0 vpn_gateway"
push "route 192.168.0.0 255.255.0.0 vpn_gateway"


When only using 1 vpn connection at the time, I can resolve properly DNS on that particular connection. But when both connections are on, then only one server (the first one connected) can resolve dns while the second one hangs when trying to resolve dns. However, I can ping any IP properly on both connections.

Any idea how I can resolve this issue?

Post Reply