// wpad.dat - random proxy config - AB function FindProxyForURL(url, host) { // Not in DMZ if (shExpMatch(url,"http://www.bgc.com.au/*")) { return "PROXY 10.46.1.35:3128; PROXY 10.46.1.36:3128; DIRECT"; } if (shExpMatch(url,"http://www.bgc.com.au:*/*")) { return "PROXY 10.46.1.35:3128; PROXY 10.46.1.36:3128; DIRECT"; } // Not in DNS Mozilla does not support SOCKS here // Only socks 4a is secure. Do not use 4 or 5. // http://bodhizazen.net/Tutorials/TOR#socks // SOCKS5 REQUIRES: network.proxy.socks_remote_dns;true if (shExpMatch(url,"*.onion/*")) { return "SOCKS5 10.46.1.36:9050; PROXY 10.46.1.36:8118; SOCKS5 10.46.1.35:9050; PROXY 10.46.1.35:8118; DIRECT"; } if (shExpMatch(url,"*.exit/*")) { return "SOCKS5 10.46.1.36:9050; PROXY 10.46.1.36:8118; SOCKS5 10.46.1.35:9050; PROXY 10.46.1.35:8118; DIRECT"; } if (shExpMatch(url,"https://check.torproject.org/*")) { return "SOCKS5 10.46.1.36:9050; PROXY 10.46.1.36:8118; SOCKS5 10.46.1.35:9050; PROXY 10.46.1.35:8118; DIRECT"; } // In DMZ or LAN if (shExpMatch(url,"*.bgc.com.au/*")) { return "DIRECT"; } if (shExpMatch(url,"*.bgc.com.au:*/*")) { return "DIRECT"; } if (shExpMatch(url,"http://bgc.com.au/*")) { return "DIRECT"; } if (shExpMatch(url,"http://bgc.com.au:*/*")) { return "DIRECT"; } if (shExpMatch(url,"*.bgcaus.com/*")) { return "DIRECT"; } if (shExpMatch(url,"*.bgcaus.com:*/*")) { return "DIRECT"; } if (shExpMatch(url,"http://bgcaus.com/*")) { return "DIRECT"; } if (shExpMatch(url,"http://bgcaus.com:*/*")) { return "DIRECT"; } // Localhost if (shExpMatch(url,"http://localhost/*")) { return "DIRECT"; } if (shExpMatch(url,"http://localhost:*/*")) { return "DIRECT"; } // Personal firewall NAT makes host think it is 127.0.0.1 // if (isInNet(host, "10.0.0.0", "255.0.0.0")) { return "DIRECT"; } // Squid not doing IPv6 - use (4in6) NAT if (isInNet(host, "::", "::")) { return "DIRECT"; } // Default not in DMZ return "PROXY 10.46.1.35:3128; PROXY 10.46.1.36:3128; DIRECT"; }