Hot!Basic Pac file setup

Author
jcm05
New Member
  • Total Posts : 14
  • Scores: 0
  • Reward points: 0
  • Joined: 2016/07/01 07:51:13
  • Status: offline
2019/05/04 19:23:40 (permalink)
0

Basic Pac file setup

Im having a little trouble creating a pac file for my new fortigate 300d. Our old firewall would self generate the wpad settings on each access as long as you had the proxy settings configured as a group policy in Active directory.  What Im trying to do is create a pac file for say firewall.localdomain.com or just *.localdomain.com the firewall is at say 172.16.0.220 port 8080 and I want to by bypass the proxy for all local traffic on ip's 172.16.*; and 192.168.* is there someone who could help me with this so I can have my dhcp clients auto configured. Thanks
 
 
 

Attached Image(s)

#1

2 Replies Related Threads

    baggins
    New Member
    • Total Posts : 11
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/07/12 06:06:20
    • Status: offline
    Re: Basic Pac file setup 2019/05/15 01:50:43 (permalink)
    0
    Hi jcm05...
     
    Try with this one...
     
    function FindProxyForURL(url, host) {

    // If the requested website is hosted within the internal network, send direct.
    if (isPlainHostName(host) ||
     shExpMatch(host, "*.localdomain.com") ||
     isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
     isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
     isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
     isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
     {return "DIRECT"};

    // If the IP address of the local machine is within a defined
    // subnet, send to a specific proxy.
    if (isInNet(myIpAddress(), "172.25.0.0", "255.255.0.0"))
     {return "PROXY 172.16.0.22:8080"};

    }
     
    Off course edit it per your requirements...
    #2
    jcm05
    New Member
    • Total Posts : 14
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/07/01 07:51:13
    • Status: offline
    Re: Basic Pac file setup 2019/05/15 05:22:27 (permalink)
    0
    Thanks for the help I grab some examples of Microsoft's website and put one together. Tested and is in production working. thanks again.
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 5.5