Contents

Related Topics

Explicit Proxy: PAC Files

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

For more information on how to configure client web browsers, see Explicit Proxy: Configure Client Web Browsers.

About 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.

See Also

About the Explicit Proxy

Explicit Proxy: HTTP Web Proxy

Give Us Feedback     Get Support     All Product Documentation     Technical Search