Re: [squid-users] proxy.pac file

From: Jeff Smith <headsup_popup@dont-contact.us>
Date: Tue, 29 Aug 2006 22:39:34 -0700 (PDT)

If the Browsers are IE you need to disable automatic
proxy caching. See

http://support.microsoft.com/?kbid=271361

Kind Regards

Jeff Smith

--- Raj <sunfire2005@gmail.com> wrote:

> Hi all,
>
> I am running squid version 2.5.stable10. All the
> users use the
> following proxy.pac file (browser pointing to the
> following proxy.pac
> file).
>
> p3 = "PROXY proxy03.domain.com:3128";
> p4 = "PROXY proxy04.domain.com:3128";
>
> p34 = p3 + "; " + p4;
> p43 = p4 + "; " + p3;
>
> function FindProxyForURL(url, host)
> {
> // All unqualified host names are to go via the
> GAN (no proxy )
> if (isPlainHostName(host)) return "DIRECT";
>
> // Any "direct" LAN IP connections are allowed
> if (shExpMatch(url, "*://172.*") ||
> shExpMatch(url, "*://10.*") ||
> shExpMatch(url, "*://192.168.*") ||
> shExpMatch(url, "*://127.0.0.1*")) return
> "DIRECT";
>
>
> // Assign Proxy based on IP Address of Client
> // VLAN's 96 --> 111
> if (isInNet(myIpAddress(), "172.26.96.0",
> "255.255.240.0")) return p34;
>
>
> // VLAN's 112 --> 128
> if (isInNet(myIpAddress(), "172.26.112.0",
> "255.255.240.0")) return p43;
>
> else
> return p34;
> }
>
>
> All the users from 172.26.96.0 - 172.26.111.0 subnet
> goes to
> proxy03.domain.com first. If proxy03 is down the
> client should
> automatically try proxy04.domain.com. But that's not
> happening. If
> proxy03 is down, the clients are not failing over to
> proxy04. Is there
> any syntax error in p34.
>
> Should I have some thing like this to work.
>
> if (isInNet(myIpAddress(), "172.26.96.0",
> "255.255.240.0"))
>
> return "PROXY proxy03.domain.com:3128; PROXY
> proxy04.domain.com:3128;
>
> Or can I add the following 'A' records to my DNS
> server
>
> proxy IN A 172.16.0.1 ; IP address of proxy03
> IN A 172.16.0.2 ; IP address of
> proxy04
>
> and
>
> in the proxy.pac file
>
> if (isInNet(myIpAddress(), "172.26.96.0",
> "255.255.240.0"))
>
> return "PROXY proxy.domain.com:3128;
>
> Any suggestions would be really appreciated.
>
> Thanks
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on Tue Aug 29 2006 - 23:39:42 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT