2

I have installed WSL2 on my corporate laptop (Windows 10 Enterprise version 1909). When my laptop is on a corporate VPN (Global Protect) with full tunneling, I lose network connectivity from the WSL2. I cannot do DNS lookup and also I cannot cURL to any website.

Everything works fine when my host laptop is off a VPN.

Note: WSL2 is using Hyper-V with Internal virtual switch.

6
  • 1
    Most likely the corporate VPN does not do or allow split tunneling. So when it is active, all network traffic goes through the tunnel. Your guest machine is likely on a different network (NAT).
    – anon
    Commented Dec 17, 2020 at 0:35
  • Thanks, John. Is there a way change the NAT to the VPN Ethernet? Surprisingly, when I use DockerDesktop which also creates a VM and networking under the hood, the network connectivity works well from that VM while on the VPN.
    – Prado
    Commented Dec 17, 2020 at 0:54
  • 1
    That is probably up to your Company Administration. It depends on how they set up the tunnel.
    – anon
    Commented Dec 17, 2020 at 0:56
  • there are many people, including me, facing similar issue. check this github.com/microsoft/WSL/issues/5068 I'm afraid there is no solution. Commented Dec 17, 2020 at 1:00
  • If this is something that brings value to your Company, ask if they will install VMware Workstation on it or enable Hyper-V on and allow you to install Linux as a guest machine . VMware has excellent networking facilities and that will likely help you here.
    – anon
    Commented Dec 17, 2020 at 2:06

0

You must log in to answer this question.