PAC file is not directing traffic to the ProxySG appliance

book

Article ID: 166745

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

User traffic is not redirecting to the ProxySG appliance even though the browser has been configured to use a PAC file and the URL is correct (such as http://IP_address:8080/accelerated_pac_base.pac).

Resolution

PAC files are written in JavaScript with conditional statements and Boolean logic. To determine the possible cause, you can edit the 'accelerated-pac' to the following:

function FindProxyForURL(url, host)
 {
 if (isPlainHostName(host))
 return "DIRECT";
 else
 return "PROXY <yourproxy.hostname.or.ip>:80";
 }

The function above checks if the hostname is not a local host. If it is not, the connection is through the proxy. In short, anything else is proxied.

If you can find the traffic in the ProxySG appliance after the PAC file installation, you do not have to correct any conditional or Boolean statements in the PAC file. 
 

For more information, refer to:
000011217 - How to implement PAC File on the ProxySG
000011089 - How to create or edit a PAC file