WSL icon indicating copy to clipboard operation
WSL copied to clipboard

[WSL2] Checkpoint VPN breaks network connectivity

Open rlipscombe opened this issue 7 years ago • 133 comments

(I've searched the open issues, and none that I could find were exactly the same)

Windows 10.0.18922.1000

I just installed Windows Insiders, and updated my Ubuntu distro to WSL2. It can no longer access the Internet.

From the Ubuntu bash prompt: ping github.com doesn't work (100% packet loss); ping 8.8.8.8 is the same.

/etc/resolv.conf gives nameserver 192.168.115.225. ping 192.168.115.225 doesn't work.

My Ubuntu distro has IP 192.168.115.230; I can ping that from Ubuntu.

The Windows IP address is 192.168.115.225, and I can ping it from PowerShell. Pinging the Ubuntu distro's IP (192.168.115.230) also works, from PowerShell.

Inside Ubuntu, route -n reports:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.115.225 0.0.0.0         UG    0      0        0 eth0
192.168.115.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

I'm using a Surface Go, Windows 10 Pro, connected to the Internet over Wifi.

I might have some left-over detritus from when I attempted to get a Hyper-V VM connecting via Wifi. That was prior to upgrading to Windows Insiders. I don't know how much of that Hyper-V networking infrastructure is shared, and I don't know how to debug that.

rlipscombe avatar Jun 29 '19 18:06 rlipscombe

I attempted to convert the distro back to WSL 1, but it failed with The network connection was aborted by the local system.

rlipscombe avatar Jun 29 '19 18:06 rlipscombe

Oh, it might be worth noting that I've got Checkpoint VPN software (not active), Wireshark (i.e. npcap) and NordVPN (also not active) installed. I don't know whether any of those will break anything.

rlipscombe avatar Jun 29 '19 19:06 rlipscombe

Uninstalling NordVPN does not fix the problem.

The Checkpoint VPN software seems to be responsible for screwing it up. Uninstalling it fixes the problem.

Unfortunately (sigh), I have to have this software installed, so it looks like I'm going to have to uninstall Windows Insiders.

Any chance you could work with Check Point to get this resolved?

rlipscombe avatar Jun 29 '19 20:06 rlipscombe

So, interestingly enough, uninstalling and reinstalling the Checkpoint VPN software appears to fix the problem.

rlipscombe avatar Jun 30 '19 16:06 rlipscombe

(title updated to true cause of problem)

rlipscombe avatar Jun 30 '19 16:06 rlipscombe

FWIW I've experienced what sounds like a similar issue, and I don't use Checkpoint VPN. I notice that when this happens, seemingly all socket-level operations seem to fail in Windows. Even my Android emulator becomes inaccessible to Android Studio, and all Chrome tabs indicate no internet connectivity. Closing all Ubuntu windows resolved the issue for me today, and this consistently happens when I leave a local server running in Ubuntu overnight and come back to my workstation 24 hours later.

BenHenning avatar Sep 20 '19 05:09 BenHenning

I'm using the Cisco AnyConnect VPN and as soon as I connect, I lose all access to the external network. Anything I can do to help debug this further?

cmeiklejohn avatar Oct 09 '19 21:10 cmeiklejohn

@cmeiklejohn please see issue https://github.com/microsoft/WSL/issues/4277

If you'd like to help us debug it please send us networking logs, instructions on how to do that are here!

craigloewen-msft avatar Oct 09 '19 23:10 craigloewen-msft

I also have this problem, using Cisco. Logs here: https://aka.ms/AA6fthe

neileadobe avatar Oct 31 '19 20:10 neileadobe

Data point: with Windows 10.0.19013.1, CheckPoint VPN E81.40. If I right-click on the notification icon and select "Disable Security Policy" (thus regaining control of my own firewall) then WSL Ubuntu can connect to the Internet correctly.

rlipscombe avatar Nov 05 '19 10:11 rlipscombe

Same issus occurs with Cisco OpenConnect VPN. Here are the logs https://aka.ms/AA6jmg1

jagjordi avatar Nov 13 '19 09:11 jagjordi

Similar issue with Citrix VPN. I can ping the server, but can not open tcp port 80 and curl is timeout.

timesnewmen avatar Nov 20 '19 18:11 timesnewmen

Same issues also with Checkpoint VPN

codeart1st avatar Dec 09 '19 12:12 codeart1st

Same problem with Cisco AnyConnect

caal-15 avatar Jan 10 '20 03:01 caal-15

I lose internet connectivity in WSL2 when using SonicWall VPN in full-tunnel mode. If I switch to partial-tunnel, then WSL2 internet connectivity is fine.

elmorekevin avatar Jan 10 '20 20:01 elmorekevin

I am seeing the same behavior using Cisco AnyConnect VPN. Any updates on this issue?

wissamz avatar Jan 17 '20 00:01 wissamz

same issue using Cisco AnyConnect (connected)

iamoverit avatar Feb 03 '20 12:02 iamoverit

So, interestingly enough, uninstalling and reinstalling the Checkpoint VPN software appears to fix the problem.

I have the same problem, but this did not seem to help in my case.

sphair avatar Mar 12 '20 14:03 sphair

I installed/used Cisco AnyConnect from Windows Store https://www.microsoft.com/store/productId/9WZDNCRDJ8LH and it started working. Credit goes to https://github.com/microsoft/WSL/issues/4277#issuecomment-561649724

hardik-id avatar Mar 14 '20 22:03 hardik-id

I have the same problem as @elmorekevin I'm using the latest Sonicwall NetExtender (9.0.274), and can only use full tunnel mode. WSL1 works perfectly at the same time WSL2 does not.

andyneff avatar Apr 02 '20 17:04 andyneff