Forum » Omrežja in internet » proxy PAC configuracija?
proxy PAC configuracija?
Pesimist ::
gledam te primere kot ta spodaj vendar jaz bi rabo kontra. Vse direkt razen enih par komadov.
Example PAC File
function FindProxyForURL(url, host) {
// If the hostname matches, send direct.
if (dnsDomainIs(host, ".intranet.domain.com") ||
shExpMatch(host, "(*.abcdomain.com|abcdomain.com)"))
return "DIRECT";
// If the protocol or URL matches, send direct.
if (url.substring(0, 4)=="ftp:" ||
shExpMatch(url, "http://abcdomain.com/folder/*"))
return "DIRECT";
// If the requested website is hosted within the internal network, send direct.
if (isPlainHostName(host) ||
shExpMatch(host, "*.local") ||
isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
return "DIRECT";
// If the IP address of the local machine is within a defined
// subnet, send to a specific proxy.
if (isInNet(myIpAddress(), "10.10.5.0", "255.255.255.0"))
return "PROXY 1.2.3.4:8080";
// DEFAULT RULE: All other traffic, use below proxies, in fail-over order.
return "PROXY 4.5.6.7:8080; PROXY 7.8.9.10:8080";
}
Example PAC File
function FindProxyForURL(url, host) {
// If the hostname matches, send direct.
if (dnsDomainIs(host, ".intranet.domain.com") ||
shExpMatch(host, "(*.abcdomain.com|abcdomain.com)"))
return "DIRECT";
// If the protocol or URL matches, send direct.
if (url.substring(0, 4)=="ftp:" ||
shExpMatch(url, "http://abcdomain.com/folder/*"))
return "DIRECT";
// If the requested website is hosted within the internal network, send direct.
if (isPlainHostName(host) ||
shExpMatch(host, "*.local") ||
isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
return "DIRECT";
// If the IP address of the local machine is within a defined
// subnet, send to a specific proxy.
if (isInNet(myIpAddress(), "10.10.5.0", "255.255.255.0"))
return "PROXY 1.2.3.4:8080";
// DEFAULT RULE: All other traffic, use below proxies, in fail-over order.
return "PROXY 4.5.6.7:8080; PROXY 7.8.9.10:8080";
}
harmony ::
Jaz se tudi ravno s tem ukvarjam.
Dejansko kar jaz hocem je proxy enabled za vse uporabnike, ko pa pridejo z laptopi ven da se jim proxy onemogoci in omogoci normalno surfanje brez proxy-ija.
Dejansko kar jaz hocem je proxy enabled za vse uporabnike, ko pa pridejo z laptopi ven da se jim proxy onemogoci in omogoci normalno surfanje brez proxy-ija.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Mikrotik - OpenVPNOddelek: Omrežja in internet | 1713 (1361) | mrsmoke |
» | Openvpn (strani: 1 2 )Oddelek: Programska oprema | 14622 (6189) | Blisk |
» | VPN povezava dveh PIX 501Oddelek: Omrežja in internet | 1354 (1175) | jl |
» | Gajba piva za rešitev mrežneag problema Vista-W2KOddelek: Omrežja in internet | 3223 (2347) | just_a_cook |
» | inet nekaj zajebava v Linuxu.Oddelek: Operacijski sistemi | 1620 (1421) | weishaupt |