proxy.pac and wpad.dat with a security service edge (SSE)
A security service edge (SSE) is a security proxy that a vendor runs in the cloud, such as Zscaler, Netskope, Skyhigh Security, Cloudflare Gateway or Palo Alto Networks' Prisma Access. Pick yours below, answer a few questions and download a PAC file that follows the vendor's own documentation and this site's rules. Each builder links to the checker with its vendor pack preselected. Below the builders, this page explains when a PAC file is the right way to reach an SSE and how it works together with the vendor's agent.
- Cloudflare Gateway PAC builder
- Netskope explicit proxy PAC builder
- Prisma Access Explicit Proxy PAC builder
- Skyhigh Security PAC builder
- Zscaler PAC builder
When is a PAC file the right way to reach an SSE?
A PAC file is the right way when the device cannot run the vendor’s agent, or when traffic already reaches the vendor from a site. The agent is the vendor’s software on each device; it catches traffic at the network level and sends it to the vendor. A PAC file (proxy auto-configuration file) only tells programs that read it which proxy to use. That makes a PAC file the right tool in these cases:
- On devices where no agent can be installed, such as servers, kiosks, virtual desktops, guest devices and the laptops of other companies. The PAC address is a setting, so nothing has to be installed.
- In offices whose traffic already goes to the vendor through a tunnel, and where the browsers should use the vendor’s proxy explicitly, for example to sign users in.
- During a move from your own proxies to an SSE, when one file sends some sites or some groups of users to the old proxy and the rest to the new one.
On company laptops that work from anywhere, the agent is usually the better way, because it covers every program and works outside the office too. The page should you still use a PAC file compares the options and their weaknesses in full.
How does a PAC file work together with the vendor’s agent?
The PAC file decides first, and the agent decides afterwards. The browser or the operating system runs
the PAC file and opens a connection, either to the proxy or directly. The agent then sees that connection
at the network level and applies its own rules. So a DIRECT in the PAC file means “not through this
proxy”, not “not through the agent”. A site that must really bypass the SSE needs an exception in the
agent’s own configuration as well (PAC-B014).
Some agents also use PAC files of their own. Zscaler Client Connector, for example, has two, with different jobs, and mixing them up breaks one of them; the Zscaler PAC file checklist explains them. Keep one list of exceptions per purpose and change the PAC file and the agent together, so that they do not drift apart.
The checker shows this interaction: choose your vendor under Environment, and its pack reports the
DIRECT rules that the agent will still catch.
Can you use wpad.dat with an SSE?
Inside your own network you can, but not on laptops that leave it. WPAD (Web Proxy Auto-Discovery) lets a
client find its PAC file without any setting: it asks DHCP or looks up a host called wpad in DNS, and
then fetches http://wpad.<your domain>/wpad.dat. That file can send traffic to the vendor’s cloud proxy
like any other PAC file. Three things are different from a PAC address that you configure:
- The file lives on your own server, because the DNS lookup always ends at a host in your domain.
Features that need the vendor to host the file are then missing. Zscaler’s
${GATEWAY}variables, for example, are filled in only in files that Zscaler hosts; on your own server you have to name the gateways directly, which Zscaler advises against (PAC-K016). - The file comes over plain HTTP, so anyone who can change traffic on the way can change where your traffic goes.
- Outside your network, someone else answers. A laptop at home or in a hotel asks that network for
wpad, and that network decides which file the laptop gets, if any.
Use WPAD only for devices that stay in your network and cannot be configured, such as guest devices. The WPAD page explains the risks and how to reduce them, and the wpad.dat generator builds the file.
What should go direct?
Send direct only what the cloud proxy cannot reach or must not see, and what the vendor says must bypass it. Each builder above adds its vendor’s list; these are the parts that every SSE PAC file needs:
- Plain host names and private addresses go direct, because the cloud proxy cannot reach your internal servers, and the
agent’s exception for local traffic does not help once a request has been sent to the proxy. Send them
DIRECTat the top of the file, without DNS lookups (PAC-C026, DNS in PAC files). - Your internal domains go direct for the same reason.
- The identity provider goes direct where the vendor requires it. When the proxy asks users to sign in, the sign-in page must not depend on the proxy itself.
- The vendor’s own sign-in and authentication services go direct where the vendor lists them, as Palo Alto Networks does for Prisma Access.
- FTP and other addresses that are not
httporhttpsgo direct, because cloud proxies accept only web traffic (PAC-C023). - An on-premises gateway itself goes direct, if you run one, because its block pages and sign-in pages come from the gateway.
What should not go direct in the file is a list of popular cloud services or streaming sites, sent around the proxy to save bandwidth. The builders leave such lists out on purpose: they belong in the proxy’s policy or in the agent’s configuration, where they are managed in one place for every device.
Do you run your own proxies instead? The PAC file generator builds a file for them, with a comment on every entry.
Last updated: