[squid-users] proxy.pac direct conf

From: MiikaT <mlist.squid@dont-contact.us>
Date: Tue, 12 Aug 2003 10:28:42 +0300

Hi,

I have proxy.pac setup for ie, which has worked ok for the time being (clients
use proxy when in defined subnet). Now I need to exclude some ip's from
proxied hosts, something similiar like in IE's "Do not use proxy for addresses
beginning...". Basically client's should go directly to specific ip's. I tried
no_cache in squid, but still the outgoing ip is the one that squid uses, so I
was hoping I could add something to my proxy.pac, which could bypass the
proxy. My current config is something like this:

function FindProxyForURL(url, host)
{
 if (isInNet(myIpAddress(), "192.168.168.0", "255.255.255.0")) {
        if (url.substring(0, 5) == "http:") {
                return "PROXY cache.foo.bar:800";
        } else if (url.substring(0, 7) == "gopher:") {
                return "PROXY localhost:800";
        } else if (url.substring(0, 6) == "https:" || url.substring(0, 6)
== "snews:") {
                return "PROXY cache.foo.bar:800";
        } else {
                return "DIRECT";
        }
        }
 else
  return "DIRECT";
}

-MiikaT
Received on Tue Aug 12 2003 - 01:24:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:50 MST