GlobalProtect App fails to apply Proxy PAC to Windows LAN settings during User Logon when the Connect Method is Pre-logon
Symptom
GP App does not apply the Proxy PAC config to Windows LAN settings during User Logon when the Connect Method is Pre-logon.
Because the PAC URL is not applied, web browsers and other proxy-aware applications do not route traffic to the intended proxy server, and any pre-existing proxy settings (e.g., from third-party agents) remain active.
Environment
GlobalProtect App
PAN-OS GlobalProtect Portal and Gateway
Connect Method: Pre-logon (Always On)
Pre-logon Tunnel Rename Timeout = -1
Cause
This behavior is expected as per the configuration and GP App design.
The predefined user account, prelogon, does not support Proxy Auto-Configuration (PAC) File URL feature because PAC needs a user context, and prelogon runs in a system context (before a user logs in)
The Pre-logon-tunnel-rename-timeout=-1 configuration renames with Prelogon tunnel to the user logon after the successful authentication to the gateway. NOTE: It does not establish a new tunnel for the user logon
Also, the GP App is designed to write this PAC URL to the endpoint's operating system proxy settings only after a VPN tunnel (IPSec or SSL) is successfully established with a GlobalProtect gateway.
With the above configuration and design, the PAC URL will not be applied to the endpoint proxy setting
- The GlobalProtect App is already connected with a Pre-logon tunnel, the user logs in to the Windows machine, and the Pre-logon tunnel renames to the User Logon tunnel after successful authentication (due to pre-logon tunnel rename timeout = -1 configured). Hence, Proxy Auto-Configuration (PAC) file URL configured in the GlobalProtect Portal is not applied to the endpoint's system proxy settings.
Resolution
Set Pre-logon-tunnel-rename-timeout 0 to have GP App terminate the Pre-logon tunnel, authenticate the logged in user to the GP Portal and Gateway, establish a tunnel for the usre and apply the user-specific settings, including PAC URL
Additional Information
Related KB: PAC File is Not Applied to Endpoints When GlobalProtect State is "Connected: Internal"