--- title: "Enabling PAC on xAgent s" slug: "enabling-pac-on-xagent-s" updated: 2026-09-08T19:10:30Z published: 2026-09-08T19:10:30Z canonical: "docs.trellix.com/enabling-pac-on-xagent-s" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Enabling PAC on xAgent s 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:** 1. Log in to the Web UI as an administrator. 2. From the **Admin** menu, select **Policies** to access the **Policies** page. 3. From the Policies table, click the **Agent Default Policy** link to go to the **Edit Policy** page. 4. Select the **Proxy** tab. 5. Toggle the Proxy **ON/OFF** switch to **ON** to enable your HTTPS proxy server. 6. Use the default system proxy settings. ![PAC_Proxy_Enable.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-51ce4a41-2326-cc6e-bf5a-6cd99fe491d8(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A02%3A36Z&se=2026-11-22T14%3A02%3A36Z&sr=c&sp=r&sig=dxFUym7Kuej%2B%2F5A8HKjLmlUjK1Q5Bmj6jHPV34UeDfM%3D) 7. On a Windows 10 system, in **Network and Internet Settings**, provide the PAC URL in the **Script address**. ![PAC_Proxy_Win10.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-1a526344-be14-0981-cf03-6d4f048d9179(1).png?sv=2026-02-06&spr=https&st=2026-11-22T13%3A02%3A36Z&se=2026-11-22T14%3A02%3A36Z&sr=c&sp=r&sig=dxFUym7Kuej%2B%2F5A8HKjLmlUjK1Q5Bmj6jHPV34UeDfM%3D) :