Skip to main content
leif_erikson
New Member
October 14, 2016
Question

Setting up the PAC file on Forticache?

  • October 14, 2016
  • 1 reply
  • 6546 views

Basically everything is working properly. The forticache is setup as explicit proxy. Here's the script i use for the PAC file. 

 

function FindProxyForURL(url, host) {

     return "PROXY 172.16.10.10:8080; DIRECT";      return "DIRECT";      return "PROXY 172.16.10.10:8080"; }

 

Everything goes through the proxy. but when a user doesnt detect the forticache, it will use the direct connections.

 

I've put it in the local directory of my computer, and i entered that location in the Automatic-proxy configuration settings of my browser. It works.

 

verified via chrome://net-internals/#proxy Now i want to use the PAC File server (http://<forticache_ip>:8080/proxy.pac) of the Forticache. But it doesnt work. I went to Firewall Objects > Web Proxy > Explicit > 'explicit-proxy' object Edited the PAC file content of the explicit-proxy object. But still the http://<forticache_ip>:8080/proxy.pac i even tried using http://<forticache_ip>:8080/explicit-proxy.pac but it doesnt work either. am i missing something here? i hope you can point me out to the correct setup. thanks a lot :)

    1 reply

    cw_FTNT
    Staff
    Staff
    November 10, 2016

    Hi,

    Your PAC port setting is 0 which means that the proxy.pac file will be downloaded from http://<forticache-ip>/proxy.pac and not

     

    Did you try to see if you can download the PAC file by pointing your browser to http://<forticache-ip>/proxy.pac ?

     

    Also, if you are administering the Forticache on HTTP, you may need to change your admin port to another port say port 81 to avoid conflict with the PAC file download on port 80, something like the below. Then you log into Forticache using http://<forticache-IP>:81

     

    config system global     set admin-port 81