<?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: Need a setting to change interfaceMetric 1 to a higher value in GlobalProtect Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243277#M7157</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/45218"&gt;@phbrown&lt;/a&gt;&amp;nbsp;I need a higher priority for the DNS server associated with the nested VPN. More specific routes don't fix this. Only the metric does. Windows has this poorly documented, but from my experience it can work&amp;nbsp;simultaneously only with DNS servers of the two network interfaces with the highest priority and in case of disagreement the response from the first interface is used.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Dec 2025 07:57:51 GMT</pubDate>
    <dc:creator>basinilya2</dc:creator>
    <dc:date>2025-12-06T07:57:51Z</dc:date>
    <item>
      <title>Need a setting to change interfaceMetric 1 to a higher value</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1242596#M7145</link>
      <description>&lt;P&gt;Hi Community.&lt;/P&gt;&lt;P&gt;Every time when GP connects it sets its interfcaceMetric to 1. However, I have a nested VPN with even higher priority so every time I have to manually change the PANGP interface metric to a higher value e.g. 400. My wired connection already has metric 8500.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there's a setting for that?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 18:05:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1242596#M7145</guid>
      <dc:creator>basinilya2</dc:creator>
      <dc:date>2025-11-25T18:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need a setting to change interfaceMetric 1 to a higher value</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1242899#M7152</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1351955977"&gt;@basinilya2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Assuming that you don't actually manage the GlobalProtect environment and you already have permission to do so locally on the endpoint, why wouldn't you just use a script to do this when you connect? Look into post-vpn-connect and run a post connection script locally if just running the script manually doesn't suite your needs, but this isn't something GlobalProtect just natively supports modifying.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 22:53:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1242899#M7152</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2025-12-01T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need a setting to change interfaceMetric 1 to a higher value</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243249#M7156</link>
      <description>&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1351955977" target="_blank"&gt;@basinilya2&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rather than trying to configure a lower metric metric, you can create more specific routes.&amp;nbsp; More specific routes takes&amp;nbsp;precedence over metrics.&amp;nbsp; So if the GlobalProtect has the subnet of 10.0.0.0/8, creating the more specific static routes of 10.0.0.0/9 and 10.128.0.0/9 will give it precedence.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 19:58:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243249#M7156</guid>
      <dc:creator>phbrown</dc:creator>
      <dc:date>2025-12-05T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need a setting to change interfaceMetric 1 to a higher value</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243277#M7157</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/45218"&gt;@phbrown&lt;/a&gt;&amp;nbsp;I need a higher priority for the DNS server associated with the nested VPN. More specific routes don't fix this. Only the metric does. Windows has this poorly documented, but from my experience it can work&amp;nbsp;simultaneously only with DNS servers of the two network interfaces with the highest priority and in case of disagreement the response from the first interface is used.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Dec 2025 07:57:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243277#M7157</guid>
      <dc:creator>basinilya2</dc:creator>
      <dc:date>2025-12-06T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need a setting to change interfaceMetric 1 to a higher value</title>
      <link>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243278#M7158</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/43480"&gt;@BPry&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks didn't know about&amp;nbsp;post-vpn-connect. Indeed I wrote a script and added it to the Windows Task Scheduler, but&amp;nbsp;post-vpn-connect seems like a better option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;#
# Set PANGP adapter metric to a higher value so nested VPNs can work
#

#
# Note that a race condition may occur if metric is set too early while GP is connecting
# C:\Program Files\Palo Alto Networks\GlobalProtect\PanGPS.log
# 
# Good:
#   des=0.0.0.0, mask=0.0.0.0, nextHop=10.41.224.68, ifidx=7, forwardType=3, forwardProto=3, age=0, nextHopAs=0, matrix=1,0,0,0,0
#   number of route is 3
#   Set route successfully. ForwardDest = 0.0.0.0, metric 1.
# 
# Bad:
#   des=0.0.0.0, mask=0.0.0.0, nextHop=10.41.224.68, ifidx=7, forwardType=3, forwardProto=3, age=0, nextHopAs=0, matrix=400,0,0,0,0
#   SetRoutes: CreateIpForwardEntry(0.0.0.0) failed (One or more arguments are not correct.)
#

$adapters = Get-NetAdapter | Where-Object { $_.ComponentID -eq "pangpd" }

foreach ($interface in $adapters) {
    # Set IPv4 and IPv6 metrics to 400
    Set-NetIPInterface -ErrorAction Continue -InterfaceIndex $interface.ifIndex -AddressFamily IPv4 -InterfaceMetric 400
    Set-NetIPInterface -ErrorAction Continue -InterfaceIndex $interface.ifIndex -AddressFamily IPv6 -InterfaceMetric 400
    
    Write-Output "Set IPv4 and IPv6 metrics to 400 for adapter: $($interface.Name) ($($interface.InterfaceDescription))"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. why are they premoderating my &lt;EM&gt;replies&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Dec 2025 08:03:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/globalprotect-discussions/need-a-setting-to-change-interfacemetric-1-to-a-higher-value/m-p/1243278#M7158</guid>
      <dc:creator>basinilya2</dc:creator>
      <dc:date>2025-12-06T08:03:23Z</dc:date>
    </item>
  </channel>
</rss>

