Explicit Proxy: PAC Files and Client Web Browser Configuration

When you use the Explicit Proxy for web traffic, you must configure your client web browsers to use the Firebox address as the proxy server. You can manually configure your client web browser with the address of the Firebox, or use proxy automatic configuration (PAC) methods to distribute the proxy configuration to all your clients.

PAC Files

A PAC (Proxy Auto-Configuration) file is a simple JavaScript file that you can use to configure client web browsers to use the Firebox as a proxy server. The PAC file includes the IP address and port number to use to connect to the Firebox

Here is an example of a simple PAC file:

function FindProxyForURL(url, host){return "PROXY 10.0.1.1:3128";}

Here is an example of a more advanced proxy configuration in a PAC file:

function FindProxyForURL(url, host)

{ if (isInNet(host, "10.0.1.0", "255.255.255.0")) {

return "DIRECT"; }

else if (url.substring(0, 5) == "http:") {

return "PROXY 10.0.1.1:3128"; }

else if (url.substring(0, 6) == "https:") {

return "PROXY 10.0.1.1:3128"; }

else { return "DIRECT"; }

}

In this example, 10.0.1.0 is the local network you want to bypass, and 10.0.1.1 is the address of the Firebox. Make sure to replace the addresses in this example with your local network and Firebox addresses.

Manage PAC Files on your Firebox

You can add up to 10 PAC files to your Firebox configuration. You can clone any PAC file you have already added and edit it to make changes. You can also edit or remove PAC files from the list.

Your Firebox does not validate the contents of PAC files.

Add a PAC File

If you already have a PAC file, you can import it to the Firebox. If you do not have a PAC file, you can modify the text of the PAC file example for your network configuration and add it to the Firebox.

After you have added a PAC file to the list of PAC files, you can specify that PAC file as active.

Edit a PAC File

After you add a PAC file to your Firebox configuration, if your network configuration changes, you can edit your PAC files to update the information in the file. When you edit a PAC file, you can change the contents of the file but not the file name.

To change the information in a PAC file:

  1. From the Proxy Auto-Configuration Files list, select a PAC file.
  2. Click Edit.
  3. Modify the contents of the PAC file.
  4. Click Save.

Clone a PAC File

You can make a copy of any PAC file in your configuration and edit it to make a new PAC file. When you clone a PAC file, you can change the file name and the contents of the file.

To change the information in a PAC file:

  1. From the Proxy Auto-Configuration Files list, select a PAC file.
  2. Click Edit.
  3. In the Name text box, type a new name for the PAC file.
  4. Modify the contents of the PAC file.
  5. Click Save.

Delete a PAC File

When you no longer need a PAC file that is in your configuration, you can remove it.

To delete a PAC file:

  1. From the Proxy Auto-Configuration Files list, select a PAC file.
  2. Click Remove.
    The PAC file is removed from the list.

Configure WPAD on the Firebox

You can host PAC files on the Firebox and distribute the PAC file to clients with the Web Proxy Autodiscovery Protocol (WPAD).

The Firebox only supports WPAD through DHCP. WPAD through DNS is not supported.

The DHCP-based WPAD mechanism sends the URL of the PAC file as option number 252 in the DHCP lease granted to a client. If the web browser is configured to automatically detect proxy settings, it receives the URL from the DHCP lease to download the PAC file.

Configure Client Web Browsers

The examples in this section show settings for Microsoft Internet Explorer, so they might be different if you use another web browser. You can use one of these methods to configure your web browsers:

Distribute PAC File Script to Clients

You can use Active Directory policies to distribute the proxy automatic configuration script URL to clients.

Automatically Detect Settings

When you store the PAC file on the Firebox, you can use WPAD through DHCP to automatically detect and configure the proxy server settings on the client web browser.

Internet Explorer LAN settings - Auto detect settings

Manual Configuration of Proxy Server Address

You can also configure the client web browser to use the Firebox address and port for the Explicit Proxy. Only use this method if you do not have many clients to configure. For larger networks, use the proxy automatic configuration methods as described in this section.

Internet Explorer LAN settings - Manual Proxy Server

To add the Firebox address and any other local IP addresses to make sure you bypass the proxy server, click Advanced. The Bypass proxy server for local addresses option only applies to host names.

Internet Explorer LAN settings - Advanced Proxy Settings

Related Topics

About the Explicit Proxy

Explicit Proxy: HTTP Web Proxy