Replies: 2 comments 5 replies
-
Some VPNs are configured to route all traffic to/from the host through the VPN and block any other connections. Since the WSL 2 VM is on a separate network to the VPN, connections to/from the VM are blocked as well. Both VPNKit (used in Docker Desktop) and gvisor-tap-vsock (used in Red Hat CRC) get around this by transferring the network connections from the VM to the Windows process on the host. For more details, you can take a look at the documentation from VPNKit and gvisor-tap-vsock. |
Beta Was this translation helpful? Give feedback.
-
Hi ! I took a look at the VPNKit and gvisor-tap-vsock docs but I'm still unsure how the wsl-vpnkit How does that work ? What's the flow of things when a program in the client VM wants to connect to the Internet ? |
Beta Was this translation helpful? Give feedback.
-
Hey,
I came across this repo after couple of days of trying amy configuration on the internet to fix connectivity issues with wsl while connected to the VPN (pulse secure on my case).
First, THANK YOU!!
Second, im extremely curious what the problem is (what prevents wsl to connect to the internet when vpn is on), and how wsl-vpnkit solves this problem.
I'd appreciate if you shed some light on this matter.
Beta Was this translation helpful? Give feedback.
All reactions