function FindProxyForURL(url, host) { // A function that allows the reporting of the proxy.pac version // if(shExpMatch(host,"proxypac.federalit.net")) // alert("TSG WPC proxy.pac version 1.4 - 29/01/2010"); // Ensure that all requests for Dagobah, which is in the DMZ, go via proxy // if(shExpMatch(host,"*dagobah*")) // return "PROXY 10.10.10.15:8080"; // Ensure that all requests from VPN clients do not use an internal proxy // else if(isInNet(myIpAddress(),"192.168.201.32","255.255.255.224") || if(isInNet(myIpAddress(),"192.168.201.32","255.255.255.224") || isInNet(myIpAddress(),"192.168.201.160","255.255.255.224")) return "DIRECT"; // Push all requests for Hobart Barracuda direct else if(shExpMatch(host,"mta01.federalit.net") || shExpMatch(host,"mta03.federalit.net") || shExpMatch(host,"10.10.10.2") || shExpMatch(host,"10.10.10.16")) return "DIRECT"; // Push all requests for Launceston Barracuda direct else if(shExpMatch(host,"mta02.federalit.net") || shExpMatch(host,"mta04.federalit.net") || shExpMatch(host,"10.10.11.11") || shExpMatch(host,"10.10.11.16")) return "DIRECT"; /* Ensure that specific addresses that could be mistaken for internal or external addresses are pushed through the proxy server if they are external */ else if(shExpMatch(host, "*securepayment.federalit.net")) return "PROXY 10.10.10.15:8080"; /* All traffic bound for internal servers and specific external servers should not be pushed through a proxy server */ else if(isPlainHostName(host) || dnsDomainIs(host, "localhost") || dnsDomainIs(host, ".networkgaming.com.au") || shExpMatch(host,"*www.networkgaming.com.au*") || shExpMatch(host,"127.0.0.1") || shExpMatch(host,"10.*")|| shExpMatch(host,"192.168.*") || shExpMatch(host,"59.167.228.1") || shExpMatch(host,"gw0.pceftpos.com") || dnsDomainIs(host, ".home") || dnsDomainIs(host, ".cable.nu") || dnsDomainIs(host, ".internal.ng") || dnsDomainIs(host, ".internal.wp") || dnsDomainIs(host, ".compassportal.com.au") || dnsDomainIs(host, ".compassportal.com") || dnsDomainIs(host, ".internal.ccr") || dnsDomainIs(host, ".mulawa.internal") || dnsDomainIs(host, ".federalit.net") || shExpMatch(host, "*thematrix.mochahost.com*") || shExpMatch(host, "*matrix.my-hosting-panel.com*") || shExpMatch(host, "203.25.104.51") || shExpMatch(host, "203.52.118.19") || shExpMatch(host, "203.42.151.57") || shExpMatch(host, "zaphod.prot.com.au") || dnsDomainIs(host, ".internal.tsg")) return "DIRECT"; // Catchall for NG HelpDesk in case they manage to get this far else if(shExpMatch(host,"192.9.200.*") && isInNet(myIpAddress(),"192.9.200.0","255.255.255.0")) return "DIRECT"; // Everything else needs to go via the proxy server else if(shExpMatch(myIpAddress(),"172.16.*") || shExpMatch(myIpAddress(),"10.*") || shExpMatch(myIpAddress(),"192.168.*")) return "PROXY 10.10.10.15:8080"; }