This section describes how to enable a proxy auto-config (PAC) on the xAgent . A PAC file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL.
A PAC file contains a JavaScript function FindProxyForURL(<url>, <host>). This function returns a string with one or more access method specifications. These specifications allow the user agent to use a particular proxy server or to connect directly.
Important
If you change the PAC file, the xAgent must be restarted for the changes to take effect.
Example PAC file:
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "172.18.0.0", "255.255.0.0"))
return "PROXY localhost:3128";
else
return "DIRECT";
}
To enable PAC on a host endpoint:
Log in to the Web UI as an administrator.
From the Admin menu, select Policies to access the Policies page.
From the Policies table, click the Agent Default Policy link to go to the Edit Policy page.
Select the Proxy tab.
Toggle the Proxy ON/OFF switch to ON to enable your HTTPS proxy server.
Use the default system proxy settings.
.png)
On a Windows 10 system, in Network and Internet Settings, provide the PAC URL in the Script address.
.png)