Question : Proxy-PAC Configuration -  referencing source AND destination

I need to forward traffic to a proxy based on source and destination.... All the current rules are singular in the sense that it is source OR destination IP OR domain, etc..

What is the syntax I would need to apply if I wanted source 10.5.5.10  destination 200.200.200.200 to go to proxy server 8.9.10.11:8080.

Thanks

Answer : Proxy-PAC Configuration -  referencing source AND destination

give this a try, i hvae not teste it myself.

function FindProxyForURL(url, host)
{
if ((isInNet(myIpAddress(), "10.5.5.10", "255.255.255.255") && (shExpMatch(url, "http://200.200.200.200"))
return "PROXY 8.9.10.11:8080";
}

Random Solutions  
 
programming4us programming4us