function FindProxyForURL(url, host) { if (dnsDomainIs(host, "gubernator.stavkray.ru") ){ return("PROXY proxy.estav.ru; DIRECT"); } if (dnsDomainIs(host, ".ncstu.ru")|| dnsDomainIs(host, "ncstu.ru")|| dnsDomainIs(host, ".ncstu.info")|| dnsDomainIs(host, ".stavedu.ru")|| dnsDomainIs(host, ".estav.ru")|| dnsDomainIs(host, ".stv.runnet.ru")|| dnsDomainIs(host, ".stavkray.ru")|| dnsDomainIs(host, ".lactose.ru")|| dnsDomainIs(host, ".pfncstu.ru")|| dnsDomainIs(host, "pfncstu.ru")|| dnsDomainIs(host, ".ncstu") ){ return("DIRECT"); } if (dnsDomainIs(host, "nilc.ru")|| dnsDomainIs(host, ".nilc.ru")|| dnsDomainIs(host, "rsl.ru")|| dnsDomainIs(host, ".rsl.ru")|| dnsDomainIs(host, "arbicon.ru")|| dnsDomainIs(host, ".arbicon.ru")|| dnsDomainIs(host, "elibrary.ru")|| dnsDomainIs(host, ".elibrary.ru")|| dnsDomainIs(host, "cir.ru")|| dnsDomainIs(host, ".cir.ru")|| dnsDomainIs(host, "springerlink.com")|| dnsDomainIs(host, ".springerlink.com") ){ return("PROXY proxy.estav.ru:3128; DIRECT"); } if (isInNet(myIpAddress(), "192.168.10.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.15.0", "255.255.255.192")|| isInNet(myIpAddress(), "192.168.15.224", "255.255.255.240")|| isInNet(myIpAddress(), "192.168.15.254", "255.255.255.255")|| isInNet(myIpAddress(), "192.168.17.32", "255.255.255.224")|| isInNet(myIpAddress(), "192.168.25.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.55.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.65.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.105.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.155.0", "255.255.255.0")|| isInNet(myIpAddress(), "192.168.20.0", "255.255.255.192") ){ return("PROXY proxy.estav.ru:3128; DIRECT"); } else { return("DIRECT"); } } |