Hi all,
Is it possible / how can one configure 2 connections for simultaneous use to different networks? I've searched this forum and the web and wasn't able to find a solution so I'm hoping someone here can help.
We have 2 Google Cloud projects (Prod & QA) each with different IP ranges x.y.0.0/16 and a.b.0.0/16. Both projects are running an instance of OpenVPN 2.3.11 x86_64-redhat-linux-gnu. And both have a local named (BIND 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6) serving DNS. We can connect to both and route to internal IPs & the Internet w/o issue if we use one or the other connection.
Clients are running Tunnelblick 3.6.5 (build 4566).
If both connections are active DNS will only work on the first activated connection. The 2nd connection doesn't update the local DNS list nor the dhcp-option search so it can only route via the IP (i.e. DNS fails to resolve).
I do get the warning from Tunnelblick rgd 2 nameservers being set:
Multiple simultaneous connections would be created (2 with 'Set nameserver', 0 without 'Set nameserver').
Disconnecting from the first connection fails to unset DNS & search option. Bouncing the WiFi connection is the only way to revert to local LAN-assigned DHCP for DNS & search.
If possible I'd prefer to avoid manually editing hosts file or setting up client-side DNS servers.
Any help would be greatly appreciated.