Henrik wrote:
>This you have to tell to your browser. Once the request reaches Squid it
>is too late to tell that it should not be sent to Squid..
This has always worked for me:
<==snip==>
//file proxy.pac
//Put this file on an internal webserver somewhere and set the URL
//as the location of your autoconfiguration script in your
//browser
function FindProxyForURL(url, host)
{
//If the hostname is not fully-qualified (eg. the intranet server)
//then let user access it directly rather than thru the proxy.
if (isPlainHostName(host)) {
return "DIRECT";
}
//Otherwise direct the browser towards the proxy servers.
//We return PROXY1 and then PROXY2. If one proxy fails then we
//failover to the next one.
return "PROXY 192.168.1.5:3128; PROXY 192.168.1.6:3128;";
}
<==snip==>
There are other variations to be found here:
http://squid-docs.sourceforge.net/latest/html/x1187.html#AEN1220 that allow
you to specify non-proxied connections on IP address ranges, etc. Dig and
you should be able to cook up something that you can use.
Sam Pointer
UNIX, Security & Network Administration
HPD Software Limited
Tel: + 44 (0) 20 8780 6800
Fax: + 44 (0) 20 8780 6801
This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.
At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk. All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to
HPD Software Limited or its affiliates.
Received on Fri Oct 17 2003 - 04:19:22 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:31 MST