Raj, The below should work. Assuming the isInNet is working properly. I would leave the if statement out and just start with returning the Proxy statements if possible. Eliminate systems by just not pointing them to the proxy.pac Regards, Bill // Assign Proxy based on IP Address of Client if (isInNet(myIpAddress(), "172.16.96.0", " 255.255.240.0")){ return PROXY proxy03.au.ap.abnamro.com:3128 PROXY proxy04.au.ap.abnamro.com:3128; } > On 3/18/06, Raj <sunfire2005@xxxxxxxxx> wrote: > > Hi All, > > > > I am running Squid 2.5.STABLE10. All the clients in our company use > > proxy.pac file in the browser settings. I need some help with the > > proxy.pac file. At the moment I have the following configuration: > > > > // Assign Proxy based on IP Address of Client > > if (isInNet(myIpAddress(), "172.16.96.0", "255.255.240.0")) return "PROXY prox > > y03.au.ap.abnamro.com:3128; PROXY proxy04.au.ap.abnamro.com:3128"; > > > > If the source IP address is from that IP range, it should go to > > proxy03 first and if proxy03 is down it should go to proxy04. But that > > is not happening. If proxy03 is down, it is not going to proxy04. Is > > there any syntax error in the above config. > > > > What is the correct syntax in proxy.pac file so that if proxy03 is > > down it will go to proxy04? > > > > Thanks. > > >