I have a Windows 10 machine with Private Internet Access (PIA) VPN service enabled. I need a Linux instance with direct internet connection, bypassing the VPN. However, all the virtual machines I create in Hyper-V connect through the PIA VPN. The same occurs with Windows Subsystem for Linux instances.
The PIA management app offers a "Split tunnel" feature that allows me to select an application and have it bypass the VPN. I have tried adding ubuntu.exe, wsl.exe and conhost.exe to the list but that doesn't work. Unfortunately, the PIA management app won't go any further than that, so I cannot add the Hyper-V Virtual Ethernet Adapter to the exclusion list.
I have contacted the PIA support team but they couldn't provide a solution.
How can I make my Hyper-V or WSL Linux instance bypass the PIA VPN?
WindowsTerminal.exe
, so you may try to exclude it, then run the WSL distribution."Split tunnel" feature that allows me to select an application
The problem is, traffics from VMs do not originate from a (local) "application" (unless the hypervisor provide the connectivity with something like "userspace NAT", which is not the case of Hyper-V or WSL). Network stack level IP forwarding is what is involved behind the scene. What you need would be alternate routing for some/all forwarded traffics. It is feasible in Linux. Not so sure about Windows.