[squid-users] proxy.pac help

2006-03-18 Thread Raj
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.


Re: [squid-users] proxy.pac help

2006-03-18 Thread Mark Elsen
 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?



 - Depending on browser vendor; this can take a while :

* Did you wait long enough ?
* Compare Firefox versus IE (e.g.)

 M.


Re: [squid-users] proxy.pac help

2006-03-18 Thread Bill Jacqmein
 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 [EMAIL PROTECTED] 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.