// Automatic Proxy Configuration Script for clients in // the HZeeland.nl / hz.nl domains (Class B network 145.19.0.0) // Doing proxyserver Load balancing based upon the ipadress of the client // Last modified: 20000108 eddy@HZeeland.nl (145.19.1.220) // Last modified: 20000119 eddy@HZeeland.nl (client distribution changed) // Last modified: 20011205 eddy@HZeeland.nl (added net 145.19.97) // Last modified: 20020412 eddy@HZeeland.nl (added net 145.19.252/22) // Last modified: 20020415 eddy@HZeeland.nl (added net 145.19.11/24) // Last modified: 20020829 eddy@HZeeland.nl (changed net 145.19.128/129/130) // Last modified: 20030210 pverha10@cis.HZeeland.nl (added net 145.19.50/24) // Last modified: 20030210 pverha10@cis.HZeeland.nl (added net 145.19.52/24) // Last modified: 20030210 pverha10@cis.HZeeland.nl (added net 145.19.60/24) // Last modified: 20030210 pverha10@cis.HZeeland.nl (added net 145.19.62/24) // Last modified: 20030506 pverha10@cis.HZeeland.nl (added net 127/8) // Last modified: 20030507 pverha10@cis.HZeeland.nl (added net 145.19.10/24) // Last modified: 20030602 pverha10@cis.HZeeland.nl (removed net 145.19.64/24,145.19.128/24,145.19.129/24 added 145.19.48/24 rebalanced proxy requests/load) // Last modified: 20040402 pverha10@cis.HZeeland.nl (restructured student balance, added nets 145.19.82/23, 145.19.84/23) // Last modified: 20040416 pverha10@cis.HZeeland.nl (added net 145.19.250/24, changed 145.19.248/13 to 145.19.254/15) // Last modified: 20040428 pverha10@cis.HZeeland.nl (added net 145.19.251/25 divided into conditional and uncondiontal proxy usage) // Last modified: 20050321 pverha10@cis.HZeeland.nl (changed 145.19.80/24 to 145.19.80/23, deleted 145.19.130/24, added 145.19.95/24) // Last modified: 20060510 pverha10@cis.HZeeland.nl (deleted net 145.19.250/24, changed 145.19.97/24 to seperate if) // Last modified: 20081106 pverha10@cis.HZeeland.nl (moved net 145.19.254/24 to always use proxy) // Last modified: 20091124 pverha10@cis.HZeeland.nl (added 145.19.126/23 to direct hosts) // Last modified: 20100611 pverha10@cis.HZeeland.nl (added .ipt.hzeeland.nl to local domains) // Last modified: 20100914 pverha10@cis.hzeeland.nl (added .muziekabcd.nl to direct conections) // Last modified: 20100916 eddy@HZeeland.nl (added desktop.hva.nl to direct conections) // Last modified: 20110119 pverha10@cis.hzeeland.nl (145.19.1.220 is never primary) // Last modified: 20130705 pverha10@cis.hzeeland.nl (added infonet2.myhz.nl via proxy in specific cases) // Last modified: 20151127 pverha10@cis.hzeeland.nl (added .ipt.hz.nl to local domains) // Last modified: 20260216 pverha10@cis.hzeeland.nl (added .myhzdev.nl to local domains, removed unity.hzeeland.nl, ipt.hz.nl and ipt.hzeeland.nl) // // Proxy servers used in this configuration: (www-proxy0, www-proxy1, www-proxy2, www-proxy5) function FindProxyForURL(url, host) { // HZ proxy if (isInNet(myIpAddress(), "145.19.97.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.108.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.102.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.98.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.126.0", "255.255.254.0")) { if ((dnsDomainIs(host, "infonet.myhz.nl")) || (dnsDomainIs(host, "infonet2.myhz.nl")) || (dnsDomainIs(host, "osiris.hosted.hz.nl")) || (dnsDomainIs(host, "fs.myhzdev.nl")) || (dnsDomainIs(host, "info.hz.nl"))) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.222:3128"; if (isPlainHostName(host) || dnsDomainIs(host, "localhost") || dnsDomainIs(host, ".local") || // dnsDomainIs(host, ".hz.nl") || dnsDomainIs(host, ".myhz.nl") || dnsDomainIs(host, ".myhzdev.nl") || dnsDomainIs(host, ".ws.hzeeland.nl") || dnsDomainIs(host, ".beheer.hz.nl") || isInNet(host, "127.0.0.0", "255.0.0.0") || isInNet(host, "145.19.126.0", "255.255.254.0") || isInNet(host, "145.19.2.30", "255.255.255.255") || isInNet(host, "145.19.102.0", "255.255.255.0") || isInNet(host, "145.19.115.0", "255.255.255.0") || isInNet(host, "145.19.118.0", "255.255.255.0") || isInNet(host, "145.19.111.0", "255.255.255.0") || isInNet(host, "145.19.3.0", "255.255.255.0") || isInNet(host, "145.19.99.0", "255.255.255.0") || isInNet(host, "145.19.89.0", "255.255.255.0") || isInNet(host, "145.19.97.0", "255.255.255.0")) return "DIRECT"; else return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.222:3128"; } // always use HZ proxy if (isInNet(myIpAddress(), "145.19.254.0", "255.255.254.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.220:3128"; // HZ proxy if (isPlainHostName(host) || dnsDomainIs(host, ".hzeeland.nl") || dnsDomainIs(host, ".HZeeland.nl") || dnsDomainIs(host, ".hz.nl") || dnsDomainIs(host, ".myhz.nl") || dnsDomainIs(host, ".muziekabcd.nl") || dnsDomainIs(host, "vsmart.zebi.nl") || dnsDomainIs(host, "desktop.hva.nl") || dnsDomainIs(host, "localhost") || isInNet(host, "127.0.0.0", "255.0.0.0") || isInNet(host, "145.19.0.0", "255.255.0.0")) return "DIRECT"; else if (url.substring(0,6) == "snews:") return "DIRECT"; else if ( isInNet(myIpAddress(), "145.19.108.0", "255.255.254.0") || isInNet(myIpAddress(), "145.19.107.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.106.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.10.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.98.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.95.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.11.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.19.0", "255.255.255.0")) return "PROXY 145.19.1.222:3128; " + "PROXY 145.19.1.220:3128"; else if (isInNet(myIpAddress(), "145.19.105.0", "255.255.255.0")) return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.222:3128"; else if (isInNet(myIpAddress(), "145.19.32.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.48.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.50.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.52.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.56.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.60.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.62.0", "255.255.255.0")) return "DIRECT"; else if (isInNet(myIpAddress(), "145.19.100.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.80.0", "255.255.254.0") || isInNet(myIpAddress(), "145.19.82.0", "255.255.254.0") || isInNet(myIpAddress(), "145.19.84.0", "255.255.254.0") || isInNet(myIpAddress(), "145.19.86.0", "255.255.255.0") || isInNet(myIpAddress(), "145.19.87.0", "255.255.255.0")) return "DIRECT"; else return "PROXY 145.19.1.220:3128; " + "PROXY 145.19.1.222:3128"; }