You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by michaelsew, Sphair, Baruch Odem (Rothkoff), Aaron Curtis, Kenny Rasschaert, jposes22, Ry, Kelly J Couch, Mike Rybnikov, Praveen Kottarathil and 22 more
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.
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.
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?
Reacted by Marcus Watkins, Phani V, Rodrigo Machuca, Steve Chapman, Darren Gibbard, Muhammad Talal Anwar, Carlos González, kennethz3, michaelsew, Martin Widmann and 34 more
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.
aderuellethcuvelierWesley Musgrove (@wesleymusgrove) Did anyone got this working? I have a similar issues - my corporate laptop has zscalar running on 9000 port, access via specific networks go via zscalar when done via browser, but those same networks when accessed via wsl fails -> because it doesn't go via zscalar. :/
Hi folks, we have put out a new update that aims to address networking issues in WSL. In your .wslconfig file you can set experimental.networkingMode=mirrored, as well as some other key settings that should improve your network compatibility! Please try them out and let us know what you think.
Please note: You need to be on a Windows Insiders version to use the new networking settings (Any channel of Windows Insiders will do, including release preview). If you see the "These are not supported" messages it means that your current Windows version doesn't have support, and you will need to upgrade. These features will eventually be coming to Windows 11 22H2.
Reacted by Baruch Odem (Rothkoff), Alexander Asplund and Selmison Miranda
Craig Loewen (@craigloewen-msft) Where would we see the "These are not supported" message? And is there a way to verify that the settings are taking effect?
If you run wsl.exe you will see the not supported messages in your console output. You can verify you have mirrored mode running by checking to see if your IP address in WSL is the same as yours in Windows (See the video in the blog post for the demo on that).
These new networking features are now available on the latest version of Win11 22H2!
Please make sure you're on the latest build to get these features, you can do that by clicking "Check for Updates" in Windows settings. You can check you have the right build by either ensuring you have KB5031354 installed, or run cmd.exe /c ver and ensure that your build number is 22621.2428 or higher (Including the minor build number which is after the . as this was a backport!)
These new networking features are now available on the latest version of Win11 22H2!
Please make sure you're on the latest build to get these features, you can do that by clicking "Check for Updates" in Windows settings. You can check you have the right build by either ensuring you have KB5031354 installed, or run cmd.exe /c ver and ensure that your build number is 22621.2428 or higher (Including the minor build number which is after the . as this was a backport!)
Craig Loewen (@craigloewen-msft) I can confirm that after installing these updates Azure VPN + Windows Defender for Endpoint and Sonicwall Mobile Connect + Windows Defender for Endpoint both work now. However SonicWall NetExtender + Windows Defender for Endpoint does not work still.
No combination of mirrored mode networking and dns tunnelling is fully helping. Mirrored mode makes the internet work when connected via checkpoint, but WSL2 can't access the vpn subnets. Dns tunneling doesn't seem to change anything.
Reacted by Olexandr Shamin, Giuseppe Ursino, JOSEALM3IDA, Zeyad Saber Refaei Kenawi, BrunoDurren and shashank99
I have a slightly different experience: Check Point Mobile VPN turned on, DNS tunneling turned on (which is default) and NAT mode (not mirrored) I get correct hostname resolution (IP resolves fine) but 100% packet loss, as before.
Changing the networkingMode to mirrored completely kills DNS resolution ('Temporary failure in name resolution') and pinging IPs directly gives 'connect: Network is unreachable'
Turning off DNS tunneling, either with networkingMode on NAT or mirrored, doesn't change anything for me, just like Łukasz Korpalski (@lkorpalski-pgs) reported
With Check Point VPN turned off, and with default settings (nothing in .wslconf) the network connection works with no problems
I know this is closed, but for others who end up here, I'll post my answer, because for me, it was a combination of things that got this working for me.
Like many of you, my company switched to Checkpoint VPN, and after that, my WSL connectivity was broken. Here's how I fixed it. Note that I did not need to shutdown WSL, uninstall/reinstall anything. I just needed to update a text file and a NIC configuration. That's all.
First, I edited the /etc/resolv.conf file. Now this is a symlink to a file that is automatically generated by WSL. Since I just got this to work, I have not yet turned off auto-generation of this file. (I'm waiting to see if this will be necessary before turning off auto-generation.) For now,I have now turned off auto-generation of this file because I found that upon restart of the underyling VM, the file is reset and the changes I made below are necessary for me to have internet access from Ubuntu on WSL. YMMV depending on your environment and how your networking staff have configured the VPN. I simply changed the file to have the following contents:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:# [network]# generateResolvConf = false
nameserver <VPN Nameserver 1>
nameserver <VPN Nameserver 2>
nameserver <Home Router Nameserver>
The first two lines I snagged from ipconfig /all for the adapter associated with the Checkpoint VPN connection. The last one is my home router's nameserver (or, your preferred nameserver, e.g. Mozilla, Google, Cloudflare, etc.). Originally, I put my home router nameserver first because I wanted to prioritize most requests through my ISP. BUT, apparently, WSL stops querying nameservers at the first "successful" response even if the result is "I couldn't find what you're looking for." So, I switched them around. Oddly enough, when I later did a nslookup for a company resource, the VPN nameservers failed to resolve the company resource, but my home router entry resolved the name 😕 Whatever, it worked.
OK, so at that point, I could ping the company resource I wanted access to—in this case, an Azure DevOps on-prem server. BUT, when attempting to git fetch origin, I received the following message: Recv failure: Connection reset by peer. Hmm, is this a firewall issue? It doesn't seem like it—that would usually be Connection forcefully reset by peer... Then I remembered the above references to the MTU size. So I did a ip link set eth0 mtu 1350, because that's what the Checkpoint VPN is configured to use as the MTU (by default?). Once that was done, I was able to access the Azure DevOps server and fetch my repository.
So, to summarize the required steps:
Update /etc/resolv.conf, potentially turning off auto-generation of the file
Set your WSL adapter's MTU (from within WSL) to the same MTU as your VPN ethernet adapter's MTU.
Profit.
Hope this helps somebody. At least this will help my future self. 😆
Reacted by Dmitry Surin, Olexandr Shamin, pakhv, David Higgins and shashank99
Set your WSL adapter's MTU (from within WSL) to the same MTU as your VPN ethernet adapter's MTU.
Affirmative, changing MTU helped me with the Check Point Endpoint Security Version VPN E87.20 Build 986104605.
Before that, I couldn't make "follow redirects" in curl. The connection just hung after the headers...
Activity
rlipscombe commentedon Jun 29, 2019
I attempted to convert the distro back to WSL 1, but it failed with
The network connection was aborted by the local system.rlipscombe commentedon Jun 29, 2019
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 commentedon Jun 29, 2019
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 commentedon Jun 30, 2019
So, interestingly enough, uninstalling and reinstalling the Checkpoint VPN software appears to fix the problem.
[-][WSL2] No network connectivity[/-][+][WSL2] Checkpoint VPN breaks network connectivity[/+]rlipscombe commentedon Jun 30, 2019
(title updated to true cause of problem)
BenHenning commentedon Sep 20, 2019
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.
cmeiklejohn commentedon Oct 9, 2019
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?
craigloewen-msft commentedon Oct 9, 2019
Christopher S. Meiklejohn (@cmeiklejohn) please see issue #4277
If you'd like to help us debug it please send us networking logs, instructions on how to do that are here!
neileadobe commentedon Oct 31, 2019
I also have this problem, using Cisco. Logs here: https://aka.ms/AA6fthe
rlipscombe commentedon Nov 5, 2019
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.
jagjordi commentedon Nov 13, 2019
Same issus occurs with Cisco OpenConnect VPN. Here are the logs https://aka.ms/AA6jmg1
timesnewmen commentedon Nov 20, 2019
Similar issue with Citrix VPN.
I can ping the server, but can not open tcp port 80 and curl is timeout.
codeart1st commentedon Dec 9, 2019
Same issues also with Checkpoint VPN
caal-15 commentedon Jan 10, 2020
Same problem with Cisco AnyConnect
106 remaining items
ganeshgk commentedon Sep 5, 2023
aderuelle thcuvelier Wesley Musgrove (@wesleymusgrove) Did anyone got this working? I have a similar issues - my corporate laptop has zscalar running on 9000 port, access via specific networks go via zscalar when done via browser, but those same networks when accessed via wsl fails -> because it doesn't go via zscalar. :/
craigloewen-msft commentedon Sep 19, 2023
Hi folks, we have put out a new update that aims to address networking issues in WSL. In your
.wslconfigfile you can setexperimental.networkingMode=mirrored, as well as some other key settings that should improve your network compatibility! Please try them out and let us know what you think.More info on this release and the changes can be found here in the blog post.
Please note: You need to be on a Windows Insiders version to use the new networking settings (Any channel of Windows Insiders will do, including release preview). If you see the "These are not supported" messages it means that your current Windows version doesn't have support, and you will need to upgrade. These features will eventually be coming to Windows 11 22H2.
wissamz commentedon Sep 19, 2023
Craig Loewen (@craigloewen-msft) Where would we see the "These are not supported" message? And is there a way to verify that the settings are taking effect?
craigloewen-msft commentedon Sep 20, 2023
If you run
wsl.exeyou will see the not supported messages in your console output. You can verify you have mirrored mode running by checking to see if your IP address in WSL is the same as yours in Windows (See the video in the blog post for the demo on that).craigloewen-msft commentedon Oct 24, 2023
These new networking features are now available on the latest version of Win11 22H2!
Please make sure you're on the latest build to get these features, you can do that by clicking "Check for Updates" in Windows settings. You can check you have the right build by either ensuring you have KB5031354 installed, or run
cmd.exe /c verand ensure that your build number is 22621.2428 or higher (Including the minor build number which is after the.as this was a backport!)andyneff commentedon Oct 31, 2023
Craig Loewen (@craigloewen-msft) I can confirm that after installing these updates Azure VPN + Windows Defender for Endpoint and Sonicwall Mobile Connect + Windows Defender for Endpoint both work now. However SonicWall NetExtender + Windows Defender for Endpoint does not work still.
kharlamov-itra commentedon Feb 21, 2024
@out510 Have you found a solution?
nb510 commentedon Feb 22, 2024
I haven't
OneBlue commentedon May 14, 2024
Hi ! Please try the latest networking features that we've added in WSL. Those should greatly improve VPN compatbility.
If the issue still remains, please reopen this issue.
lkorpalski-pgs commentedon Jun 12, 2024
No combination of mirrored mode networking and dns tunnelling is fully helping. Mirrored mode makes the internet work when connected via checkpoint, but WSL2 can't access the vpn subnets. Dns tunneling doesn't seem to change anything.
JOSEALM3IDA commentedon Jul 4, 2024
I have a slightly different experience: Check Point Mobile VPN turned on, DNS tunneling turned on (which is default) and NAT mode (not mirrored) I get correct hostname resolution (IP resolves fine) but 100% packet loss, as before.
Changing the networkingMode to mirrored completely kills DNS resolution ('Temporary failure in name resolution') and pinging IPs directly gives 'connect: Network is unreachable'
Turning off DNS tunneling, either with networkingMode on NAT or mirrored, doesn't change anything for me, just like Łukasz Korpalski (@lkorpalski-pgs) reported
With Check Point VPN turned off, and with default settings (nothing in .wslconf) the network connection works with no problems
bedware commentedon Sep 25, 2024
This helped me make external (internet) and internal (corporate) resources work. Taken from here.
Prerequisites:
fourpastmidnight commentedon Oct 7, 2024
I know this is closed, but for others who end up here, I'll post my answer, because for me, it was a combination of things that got this working for me.
Like many of you, my company switched to Checkpoint VPN, and after that, my WSL connectivity was broken. Here's how I fixed it. Note that I did not need to shutdown WSL, uninstall/reinstall anything. I just needed to update a text file and a NIC configuration. That's all.
First, I edited the
/etc/resolv.conffile. Now this is a symlink to a file that is automatically generated by WSL.Since I just got this to work, I have not yet turned off auto-generation of this file. (I'm waiting to see if this will be necessary before turning off auto-generation.) For now,I have now turned off auto-generation of this file because I found that upon restart of the underyling VM, the file is reset and the changes I made below are necessary for me to have internet access from Ubuntu on WSL. YMMV depending on your environment and how your networking staff have configured the VPN. I simply changed the file to have the following contents:The first two lines I snagged from
ipconfig /allfor the adapter associated with the Checkpoint VPN connection. The last one is my home router's nameserver (or, your preferred nameserver, e.g. Mozilla, Google, Cloudflare, etc.). Originally, I put my home router nameserver first because I wanted to prioritize most requests through my ISP. BUT, apparently, WSL stops querying nameservers at the first "successful" response even if the result is "I couldn't find what you're looking for." So, I switched them around. Oddly enough, when I later did anslookupfor a company resource, the VPN nameservers failed to resolve the company resource, but my home router entry resolved the name 😕 Whatever, it worked.OK, so at that point, I could
pingthe company resource I wanted access to—in this case, an Azure DevOps on-prem server. BUT, when attempting togit fetch origin, I received the following message:Recv failure: Connection reset by peer. Hmm, is this a firewall issue? It doesn't seem like it—that would usually beConnection forcefully reset by peer... Then I remembered the above references to the MTU size. So I did aip link set eth0 mtu 1350, because that's what the Checkpoint VPN is configured to use as the MTU (by default?). Once that was done, I was able to access the Azure DevOps server and fetch my repository.So, to summarize the required steps:
/etc/resolv.conf, potentially turning off auto-generation of the fileHope this helps somebody. At least this will help my future self. 😆
bedware commentedon Oct 14, 2024
Affirmative, changing MTU helped me with the Check Point Endpoint Security Version VPN E87.20 Build 986104605.
Before that, I couldn't make "follow redirects" in curl. The connection just hung after the headers...
Thanks