Configuration: VPN Recovery After Modern Standby

Configuration: VPN Recovery After Modern Standby

1277
Created On 10/20/26 05:55 AM - Last Modified 11/18/26 18:17 PM


Symptom


After the endpoint resumes from Modern Standby (sleep), the GlobalProtect app fails to re-establish the VPN connection automatically. The application may remain stuck in a "Connecting" or "Disconnected" state, requiring the user to manually interact with the GlobalProtect UI to restore network connectivity.



Environment


Environment

  • Component: GlobalProtect App (PanGPA)
  • OS: Windows, macOS
  • Hardware: Endpoints supporting Modern Standby
  • Configuration: Always-On VPN mode or On-Demand mode with conditional connect enabled.


Cause


When the operating system wakes from Modern Standby, rapid local network interface transitions and IP address changes can occasionally cause the GlobalProtect state machine to fall out of sync. If the VPN connection sequence initiates before the local network has fully stabilized, the client may fail to connect and remain in a suspended state without triggering a new connection attempt.



Resolution


To automatically remediate this issue, GlobalProtect includes a feature called VPN Recovery After Modern Standby, starting in GP versions 6.2.8-h15 and 6.3.3-h16.

When enabled, this feature monitors the VPN connection status immediately after the system wakes from sleep. As soon as a Modern Standby resume is detected, a monitoring thread starts. However, the VPN connection status check will not begin until the following preconditions are met (the thread polls every 500 ms until they are satisfied):

  • The user is logged in.
  • The screen is unlocked.
  • No refresh connection has been issued by this feature in the current session. (Note: Entering Modern Standby resets this flag).

Once the above preconditions are met, the feature checks the VPN connection status:

  • If the VPN is already connected, the monitoring thread exits.
  • If the VPN is not connected, it waits for a configurable timer (default is 15 seconds) before rechecking the VPN connection again.
  • If the VPN is still not connected after the wait period, the feature automatically triggers an internal "Refresh Connection" to restore connectivity without user intervention.

To enable and configure the feature: (Note: This feature is disabled by default and does not support proxy-only mode.)

For Windows: Open the Registry Editor and navigate to: HKEY_LOCAL_MACHINE\Software\Palo Alto Networks\GlobalProtect\Settings

Create the following keys:

  • Name: VPNRecoveryEnabled (Type: DWORD) | Value: 1 (Enable) Value: 0 (Disable)
  • Name: VPNRecoveryWaitSec (Type: DWORD) | Value: 15 (Optional: Defines the wait time in seconds before triggering the refresh. Range is 0–15).

                                  


For macOS:
Open Terminal and modify the settings plist: /Library/Preferences/com.paloaltonetworks.GlobalProtect.settings.plist

Create the following keys:

  • Name: VPNRecoveryEnabled (Type: Integer) | Value: 1 (Enable) Value: 0 (Disable)
  • Name: VPNRecoveryWaitSec (Type: Integer) | Value: 15 (Optional: Defines the wait time in seconds before triggering the refresh)

(Note: Setting VPNRecoveryWaitSec to 0 means there is no wait time; the feature will proceed to remediation immediately if the VPN is not connected once the screen is unlocked).

Restart the GlobalProtect service (PanGPS) or reboot the endpoint to apply the changes.

Verification and Logging: 

  • PanGPA.log : Contains the detailed VPN recovery feature logs, including the monitoring thread initialization, precondition polling, wait timer, and the "Refresh Connection" trigger events. (search or grep for "VPN Recovery" )
  • pan_gpa_event.log: Contains the exact system-level events for when the OS enters and exits Modern Standby (sleep/resume).


Additional Information


  • On-Demand Mode: If the portal is configured for On-Demand mode (and Conditional Connect is disabled), the recovery monitoring thread will automatically exit upon waking, as persistent connectivity is not expected or required. 

  • Manual Disconnects: If the user manually disconnects or disables the VPN prior to the system entering sleep mode, the monitoring thread will still run upon waking. However, the app will ignore the "Refresh Connection" trigger to respect the user's manual disconnected state.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000SdpCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail