[squid-users] proxy.pac direct conf

This is a discussion on [squid-users] proxy.pac direct conf within the Squid Users forums, part of the Web Server and Related Forums category; Hi, I have proxy.pac setup for ie, which has worked ok for the time being (clients use proxy when ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
MiikaT
 
Posts: n/a
Default [squid-users] proxy.pac direct conf

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0