Look into the pacparser project on github. It allows you to evaluate a pac file and test the logic.
Hi All,
I have 2 issues
First one: How can i bypass proxy for an IP in LAN.
I am running squid on openwrt and i want to allow some websites to bypass proxy and want to allow them go direct.
function FindProxyForURL(url, host)
{
// The 1st if function tests if the URI should be by-passed
// Proxy By-Pass List
if (
// ignore RFC 1918 internal addreses
isInNet(host, "10.0.0.0", "255.0.0.0") ||
isInNet(host, "172.16.0.0", "255.240.0.0") ||
isInNet(host, "192.168.0.0", "255.255.0.0") ||
// is url is like http://server by-pass
isPlainHostName(host) ||
// localhost!!
localHostOrDomainIs(host, "127.0.0.1") ||
// by-pass internal URLS
dnsDomainIs(host, ".flipkart.com") ||
dnsDomainIs(host, ".apple.com") ||
dnsDomainIs(host, ".linuxbite.com") ||
dnsDomainIs(host, ".rediff.com") ||
// by-pass FTP
// shExpMatch(url, "ftp:*")
url.substring(0, 4)=="ftp:"
)
// If True, tell the browser to go direct
return "DIRECT";
// If False, it's not on the by-pass then Proxy the request if you fail to connect to the proxy, try direct.
return "PROXY 192.168.1.1:3128";
//return "DIRECT";
}
--
Regards,
Yashvinder
Yashvinder
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users