<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GlobalProtect blocks the network traffic of WSL2 in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/417734#M1502</link>
    <description>&lt;P&gt;I had the same issue, the solution presented here didn't solve it entirely because I had to disconnect the VPN connection to have network connection outside the Windows Subsystem. After several attempts my solution was to downgrade &lt;STRONG&gt;WSL to version 1&lt;/STRONG&gt;&amp;nbsp;and it was is as easy as running this command on my Windows Powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wsl --set-version Ubuntu 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved my VPN connection at Windows Subsystem. Note: I'm using Ubuntu.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 09:38:50 GMT</pubDate>
    <dc:creator>paulo_graca</dc:creator>
    <dc:date>2021-07-08T09:38:50Z</dc:date>
    <item>
      <title>GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/354962#M478</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I use WSL2 with an Ubuntu image. It works fine but when I establish a VPN connection by GlobalProtect, it cut the connection from the WSL image to the outside. We have no split tunneling and the connection to the devices behind the tunnel works fine from the Windows environment but not from WSL. And I'm unable to access the internet from WSL as well. Can somebody help me with this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 20:00:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/354962#M478</guid>
      <dc:creator>gbagita</dc:creator>
      <dc:date>2020-10-07T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/360200#M542</link>
      <description>&lt;P&gt;I found the solution which solves the problem. You have to change the metric of the interfaces. Here is a PS script for it:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Get-NetIPInterface -InterfaceAlias "vEthernet (WSL)" | Set-NetIPInterface -InterfaceMetric 1
Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "PANGP Virtual Ethernet Adapter #2"} | Set-NetIPInterface -InterfaceMetric 6000&lt;/LI-CODE&gt;&lt;P&gt;You have to run it as an administrator.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:29:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/360200#M542</guid>
      <dc:creator>gbagita</dc:creator>
      <dc:date>2020-11-02T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/380670#M804</link>
      <description>&lt;P&gt;This works, but I found that once I run this, WSL can connect to the internet, but Windows can no longer connect to machines on the network over RDP over SSH. It seems to have solved one problem and created another. Any idea why that might happen?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 20:47:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/380670#M804</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2021-01-18T20:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/384280#M889</link>
      <description>&lt;P&gt;The problem is, the WSL2 Linux devices are not running in an emulated environment in Windows, but they are standalone virtual machines and have they own virtual ethernet adapters.It's like you are running two virtual machines in Hyper-V or WMware. One of its is your Windows and the other is the Linux machine you're running in WSL2. Here is described a difference between WSL and WSL2 &lt;A href="https://docs.microsoft.com/en-us/windows/wsl/compare-versions" target="_blank"&gt;Comparing WSL 2 and WSL 1 | Microsoft Docs&lt;/A&gt;. It also means, when you need to access a devices from the WSL machine at the same remote location as you accessing them from the Win machine, you need to build an other Global Protect VPN tunnel from the WSL machine as well. It works fine for me.&lt;/P&gt;&lt;P&gt;I use GP VPN at home to connect to my office or to customers and I have no other devices at home I need to connect. But I think, you should run a similar script after you disconnect the GP VPN, which returns back the routing settings to the default status.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 09:48:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/384280#M889</guid>
      <dc:creator>gbagita</dc:creator>
      <dc:date>2021-02-06T09:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/417734#M1502</link>
      <description>&lt;P&gt;I had the same issue, the solution presented here didn't solve it entirely because I had to disconnect the VPN connection to have network connection outside the Windows Subsystem. After several attempts my solution was to downgrade &lt;STRONG&gt;WSL to version 1&lt;/STRONG&gt;&amp;nbsp;and it was is as easy as running this command on my Windows Powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wsl --set-version Ubuntu 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This solved my VPN connection at Windows Subsystem. Note: I'm using Ubuntu.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 09:38:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/417734#M1502</guid>
      <dc:creator>paulo_graca</dc:creator>
      <dc:date>2021-07-08T09:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422568#M1560</link>
      <description>&lt;P&gt;Going to WSL1 is not a solution for me, because I want to use Docker and that only works on WSL2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the metrics is also a pain, because at our company we dont have admin rights to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AnyConnect seems to have done this on a recent update, so why cant GlobalProtect do the same?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 07:07:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422568#M1560</guid>
      <dc:creator>JohnnyBigodes</dc:creator>
      <dc:date>2021-07-28T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422621#M1561</link>
      <description>&lt;P&gt;It's actually from windows that I can't connect to machines over RDP anymore, not from WSL. I didn't even try that. I've seen others say the same but I can't remember where I saw it unfortunately.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:07:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422621#M1561</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2021-07-28T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422622#M1562</link>
      <description>&lt;P&gt;Docker works just fine on WSL1.&amp;nbsp; Still, I'd prefer to use 2 if we could get a real solution for this. It would have to come from Palo and be part of GP.&amp;nbsp; Modifying network adaptors in a scheduled task is not a solution, it's a hack that creates other problems. Lots of people have this issue if you search on Google and other VPN providers seem to have provided software solutions.&amp;nbsp; Not palo, though.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:12:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422622#M1562</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2021-07-28T12:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422628#M1563</link>
      <description>&lt;P&gt;Microsoft seems to be moving away from WSL1. It's no longer the default. Eventually, this will not be a viable solution.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 12:16:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422628#M1563</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2021-07-28T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422660#M1566</link>
      <description>&lt;P&gt;Since when does Docker work in WSL1?&lt;BR /&gt;&lt;BR /&gt;I am pretty sure I tried it some months ago and it wouldnt work.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:02:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422660#M1566</guid>
      <dc:creator>JohnnyBigodes</dc:creator>
      <dc:date>2021-07-28T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422661#M1567</link>
      <description>&lt;P&gt;I use it every day. Definitely works. This link was purple in my search history so maybe it's the one I used?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly" target="_blank"&gt;https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:05:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422661#M1567</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2021-07-28T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422662#M1568</link>
      <description>&lt;P&gt;Will take a look at that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems that Docker has to be installed under WSL1 aswell, while WSL2 uses Docker that is installed on Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nice to know... I will still miss the speed of WSL2 if I have to go to WSL1.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:09:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/422662#M1568</guid>
      <dc:creator>JohnnyBigodes</dc:creator>
      <dc:date>2021-07-28T14:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/424989#M1603</link>
      <description>&lt;P&gt;Some replies here have unintended side effects that lead us down a different path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GP adds "on-link" host routes for itself on the "main" ethernet interface when it connects.&lt;BR /&gt;Our workaround was a PS script to add a similar host route (via the WSL adapter virtual ethernet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. during our test when&lt;BR /&gt;- the WSL host had an IP of 172.25.175.245&lt;BR /&gt;- netstat showed interface #20&amp;nbsp; "Hyper-V Virtual Ethernet Adapter #2"&amp;nbsp; held our WSL network&lt;BR /&gt;- GlobalProtect's tunnel host route had a metric of 256 (though I imagine any value greater than 1 will do)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we got it working by adding&lt;BR /&gt;- route add 172.25.175.245 mask 255.255.255.255 172.25.175.245 metric 256 if 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without the route, WSL seems to be treated as coming from a local LAN (which is not allowed by configuration) rather than the local host.&lt;/P&gt;&lt;P&gt;Adding the route "fixes" that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I should be able to direct GP to treat more than 1 interface as local on a multi-homed host.&lt;BR /&gt;Lacking that, we schedule scripts on interface up/down events.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 23:57:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/424989#M1603</guid>
      <dc:creator>adabar</dc:creator>
      <dc:date>2021-08-05T23:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/464397#M2445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide more details? Does it solve the following issue?&lt;/P&gt;&lt;P&gt;- Hyper-V is enabled&lt;/P&gt;&lt;P&gt;- GlobalProtect VPN is enabled&lt;/P&gt;&lt;P&gt;- WSL2 is started&lt;/P&gt;&lt;P&gt;- network connectivity to the internet from within WSL2 is working (wsl2-vpnkit is used)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 1&lt;/P&gt;&lt;P&gt;- services running in WSL2 (web server for instance) are not reachable from the hosts browser&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;BR /&gt;Get-NetIPInterface -InterfaceAlias "vEthernet (WSL)" | Set-NetIPInterface -InterfaceMetric 1&lt;BR /&gt;Get-NetAdapter | Where-Object {$_.InterfaceDescription -like "PANGP*"} | Set-NetIPInterface -InterfaceMetric 6000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 2&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;issue 1 is solved but&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- now e.g. using the host browser (Windows 10) to reach any website (internal and public) leads either to a timeout or is very very slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is probably because GP routing now that traffic through the Hyper-V Virtual Ethernet Adapter #2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Cisco AnyConnect is the following option available: &lt;A href="https://www.cisco.com/c/en/us/td/docs/security/vpn_client/anyconnect/anyconnect410/administration/guide/b-anyconnect-admin-guide-4-10/troubleshoot-anyconnect.html#Cisco_Task_in_List_GUI.dita_3a9a8101-f034-4e9b-b24a-486ee47b5e9f" target="_blank" rel="noopener"&gt;https://www.cisco.com/c/en/us/td/docs/security/vpn_client/anyconnect/anyconnect410/administration/guide/b-anyconnect-admin-guide-4-10/troubleshoot-anyconnect.html#Cisco_Task_in_List_GUI.dita_3a9a8101-f034-4e9b-b24a-486ee47b5e9f&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That probably would solve that issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;Example: route add 172.17.169.14 mask 255.255.255.255 172.17.169.14 metric 256 if 47 (in Windows)&lt;/P&gt;&lt;P&gt;worked indeed and solved the issue. I implemented a CMD/Powershell combination which is executed on logon and whenever the network changes (VPN on/off) which sets a static IP for the WSL2 distribution. If multiple distributions, it sets a static IP for each individual distribution.&lt;/P&gt;&lt;P&gt;Finally, it executes route add for these IPs.&lt;/P&gt;&lt;P&gt;Furthermore, the solution for issue 1 is obsolete then, so far.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:16:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/464397#M2445</guid>
      <dc:creator>rhehlp</dc:creator>
      <dc:date>2022-02-09T12:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/478676#M2638</link>
      <description>&lt;P&gt;still not working for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\WINDOWS\system32&amp;gt; wsl -d Ubuntu-20.04&lt;/P&gt;&lt;P&gt;The attempted operation is not supported for the type of object referenced.&lt;/P&gt;&lt;P&gt;PS C:\WINDOWS\system32&amp;gt; wsl -l -v&lt;/P&gt;&lt;P&gt;NAME STATE VERSION&lt;/P&gt;&lt;P&gt;* Ubuntu-18.04 Running 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ubuntu-20.04 Stopped 2&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:38:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/478676#M2638</guid>
      <dc:creator>rkusumoto</dc:creator>
      <dc:date>2022-04-06T15:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/507821#M2955</link>
      <description>&lt;P&gt;This solution works for me and I took the time to script it for the rest of my team.&lt;/P&gt;&lt;P&gt;This should work for almost every one without much modification (save it as a powershell script .ps1):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco"&gt;$var=C:\Windows\System32\wsl.exe -e /bin/bash --noprofile --norc -c "/sbin/ip -o -4 addr list eth0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;$wsl_addr = $var.split()[6].split('/')[0]&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco"&gt;$var2 = C:\Windows\System32\wsl.exe -e /bin/bash --noprofile --norc -c "/sbin/ip -o route show table main default"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;$wsl_gw = $var2.split()[2]&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco"&gt;$ifindex = Get-NetRoute -DestinationPrefix $wsl_gw/32 | Select-Object -ExpandProperty "IfIndex"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;$routemetric = Get-NetRoute -DestinationPrefix $wsl_gw/32 | Select-Object -ExpandProperty "RouteMetric"&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="terminal,monaco"&gt;route add $wsl_addr mask 255.255.255.255 $wsl_addr metric $routemetric if $ifindex&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As this need to be run as administrator, You should schedule it using an event based scheduled task, which run the powershell script every time a wsl is booted.&lt;/P&gt;&lt;P&gt;To do this, you need to schedule on this event:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Log: System&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Source:&amp;nbsp;Hyper-V-VmSwitch&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Event Id : 102&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 04:50:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/507821#M2955</guid>
      <dc:creator>VincentCollier</dc:creator>
      <dc:date>2022-07-04T04:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/512142#M3084</link>
      <description>&lt;P&gt;I had a user experiencing the same trouble while connected to our enterprise Globalprotect VPN.&amp;nbsp; After some testing and looking at different solutions I found&amp;nbsp;&lt;A href="https://github.com/sakai135/wsl-vpnkit" target="_blank"&gt;https://github.com/sakai135/wsl-vpnkit&lt;/A&gt; and used it to resolve the issue with using WSL while connected to the VPN.&amp;nbsp; Just wanted to share to help anyone else that may run into this problem as this add on was much easier than the other provided solution in this thread in my opinion.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:47:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/512142#M3084</guid>
      <dc:creator>ETatPSU</dc:creator>
      <dc:date>2022-08-17T15:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/523756#M3489</link>
      <description>&lt;P&gt;so what is the actual long term solution on this one then?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 03:33:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/523756#M3489</guid>
      <dc:creator>Sec101</dc:creator>
      <dc:date>2022-12-10T03:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/523799#M3491</link>
      <description>&lt;P&gt;I couldn't get it to work consistently so I switched to Ubuntu, though, TBH, Palo's Linux client is pretty atrocious. networkmanager-openconnect was much better for a while but a recent Palo upgrade broke it. Duck tape and superglue seems to be getting me by.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:43:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/523799#M3491</guid>
      <dc:creator>csmith</dc:creator>
      <dc:date>2022-12-12T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: GlobalProtect blocks the network traffic of WSL2</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/524877#M3532</link>
      <description>&lt;P&gt;as it stands now, I don't think support has a long term solution either.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:42:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/globalprotect-blocks-the-network-traffic-of-wsl2/m-p/524877#M3532</guid>
      <dc:creator>Sec101</dc:creator>
      <dc:date>2022-12-22T17:42:11Z</dc:date>
    </item>
  </channel>
</rss>

