<?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: Windows 10/11 CLI commands for checking VPN connection and which portal in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/windows-10-11-cli-commands-for-checking-vpn-connection-and-which/m-p/522708#M108278</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/259695"&gt;@SE_Guru&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately GlobalProtect doesn't have any official CLI tool on Windows.&lt;/P&gt;
&lt;P&gt;For me theeasiest way to check if GlobalProtect&amp;nbsp; is connected over CLI is:&lt;BR /&gt;- Check ipconfig/network interfaces and see if PANGP interface has assigned IP address&lt;/P&gt;
&lt;P&gt;- Check routing table (route print) and confirm the required route is pointing to tunnel (either look for default route or for specific route if you use split tunnel)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With above simple checks you should be able to detect which GP portal/gateway are you using - based on the IP range that is assigned ( I would expect to receive different IP ranges when connected to different gateways). &lt;/P&gt;
&lt;P&gt;Another way is to check the following registry &lt;BR /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup&lt;/P&gt;
&lt;P&gt;To be honest I am not sure if this registry is not used only for persistence, meaning that I am not sure if you will see different portal address if you switch portals.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 07:47:51 GMT</pubDate>
    <dc:creator>A_Astardzhiev</dc:creator>
    <dc:date>2022-11-29T07:47:51Z</dc:date>
    <item>
      <title>Windows 10/11 CLI commands for checking VPN connection and which portal</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/windows-10-11-cli-commands-for-checking-vpn-connection-and-which/m-p/522685#M108272</link>
      <description>&lt;P&gt;I have several applications I run on my computer.&amp;nbsp; They require that i am VPN'ed into my company since they use servers on the corporate network.&amp;nbsp; Is there a way to add a check when launching one of these programs (I'm thinking writing a windows batch file to accommodate this) that will check to see that I am connected to VPN via GlobalProtect and confirm i am on the correct Corporate Network (Portal)??&amp;nbsp; i am currently running windows 10 and GlobalProtect version 5.2.5-84&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you in advance for your help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 02:21:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/windows-10-11-cli-commands-for-checking-vpn-connection-and-which/m-p/522685#M108272</guid>
      <dc:creator>SE_Guru</dc:creator>
      <dc:date>2022-11-29T02:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 10/11 CLI commands for checking VPN connection and which portal</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/windows-10-11-cli-commands-for-checking-vpn-connection-and-which/m-p/522708#M108278</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/259695"&gt;@SE_Guru&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately GlobalProtect doesn't have any official CLI tool on Windows.&lt;/P&gt;
&lt;P&gt;For me theeasiest way to check if GlobalProtect&amp;nbsp; is connected over CLI is:&lt;BR /&gt;- Check ipconfig/network interfaces and see if PANGP interface has assigned IP address&lt;/P&gt;
&lt;P&gt;- Check routing table (route print) and confirm the required route is pointing to tunnel (either look for default route or for specific route if you use split tunnel)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With above simple checks you should be able to detect which GP portal/gateway are you using - based on the IP range that is assigned ( I would expect to receive different IP ranges when connected to different gateways). &lt;/P&gt;
&lt;P&gt;Another way is to check the following registry &lt;BR /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup&lt;/P&gt;
&lt;P&gt;To be honest I am not sure if this registry is not used only for persistence, meaning that I am not sure if you will see different portal address if you switch portals.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 07:47:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/windows-10-11-cli-commands-for-checking-vpn-connection-and-which/m-p/522708#M108278</guid>
      <dc:creator>A_Astardzhiev</dc:creator>
      <dc:date>2022-11-29T07:47:51Z</dc:date>
    </item>
  </channel>
</rss>

