Just a quick lessons-learned thing. One of my clients was running split DNS
in a way that internal users workstations were not able to resolve both
internal and Internet names simultaneously. Under this scenerio, the
isInNet command adds a huge (i.e. >45 second) delay to most new requests as
it takes that long for the DNS query for the destination host name to time
out.
Jon
> -----Original Message-----
> From: Marc G. Fournier [SMTP:marc.fournier@acadiau.ca]
> Sent: Tuesday, October 12, 1999 12:18 AM
> To: squid-users@ircache.net
> Subject: proxy.pac file ...
>
>
> At work, we have a network of some 5k+ students, faculty and staff using
> the 'Net, and, now that we have it setup, are being converted over to use
> our Proxy server...looks really sweet, until we look closely and see alot
> of offcampus accesses being made, and I'd like to reduce that...
>
> We're using the proxy.pac stuff, as descripted that the netscape URl taht
> was passed around a little while back, but, being a JavaScript illierate,
> am not sure how to extend teh following to do what I want:
>
> function FindProxyForURL(url, host)
> {
> if (isPlainHostName(host) ||
> dnsDomainIs(host, ".acadiau.ca") ||
> isInNet(host, "131.162.0.0", "255.255.0.0"))
> return "DIRECT";
> else
> return "PROXY proxy.acadiau.ca:3128; DIRECT";
> }
>
> Basically, I want it so that "if myIpAddress() != 131.162.*, return
> DIRECT", but...how do you tell JavaScript to do a substring to check the
> first 7 characters returned by myIpAddress()?
>
> Thanks...
>
> Marc G. Fournier marc.fournier@acadiau.ca
> Senior Systems Administrator Acadia University
>
> "These are my opinions, which are not necessarily shared by my employer"
Received on Tue Oct 12 1999 - 06:08:43 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:47 MST