[squid-users] proxy pac files issues

Simon Dcunha simon at baladia.gov.kw
Sat Jan 17 08:37:29 UTC 2015


Dear Guys,

Let me revise my posts incase i was not very clear

I need all my hosts on private IPs for example
10.0.0.0/8
172.16.0.0/16
192.168.0.0/16
to be accessed without my squid proxy since they are on my local intranet
but I have see that some hosts on the above ips are still accessed through the squid proxy as the squid access .log file shows the logs and the pac.access file does not show any information
below is my newest pac file i have .
----------------
function FindProxyForURL(url, host) {
 
// If the requested website is hosted within the internal network, send direct.
    if (isPlainHostName(host) ||
        shExpMatch(host, "*.local") ||
        isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
        isInNet(dnsResolve(host), "172.16.0.0",  "255.255.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";


    return "PROXY 172.16.110.253:80";
 
}

--------------------------
right now I have no hosts on 192.168 network but maybe a need arise latter to use the 192.168 network so would not have to add this network

also the Add Handler command in httpd.conf is there
Just wondering what is wrong .

appreciate your help and advice

regards


simon


-- 
---------
Network Administrator
Kuwait Municipality!!!

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the squid-users mailing list