Link to home
Start Free TrialLog in
Avatar of chintuvj
chintuvj

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of ujitnos
ujitnos
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
myIpAddress is 0.0.0.0 or empty in some configurations.
Avatar of chintuvj
chintuvj

ASKER

i ended up using

if (isInNet(myIpAddress(), "10.24.65.54", "255.255.255.255") && (shExpMatch(url, "http://207.207.207.1"))) {
      return "172.16.127.27:8080";
      }

But your solution seems to work and led me in the right direction.
return "172.16.127.27:8080"

It is plain WRONG, you have to return PROXY, SOCKS or DIRECT