Re: [squid-users] pac and dat woes

2007-05-10 Thread Amos Jeffries

David Gameau wrote:

-Original Message-
From: Adrian Chadd [mailto:[EMAIL PROTECTED] 


On Fri, May 11, 2007, David Gameau wrote:
I've made WPAD work but I've not made it work with a DHCP 
configuration. I've done mine with DNS.


Does anyone here have an example of a WPAD+DHCP 
configuration? If so I'd like to talk to you and document

it on the Wiki.


Here's what we use to support WPAD+DHCP:
[From dhcpd.conf, in the global section of the file]
  option option-252 code 252 = text;
  option option-252 "http://wpad.example.com/wpad.dat\n";;

Note that IE6 truncates the answer it gets (by dropping the
last character), which is why you need to include something
like '\n'.

I'm not sure whether Firefox supports DHCP for its autodiscovery.

Hm! How interesting. Do you have any tech references for that IE6
WPAD behaviour?

Adrian


I can't find the singular authoritative source for the problem.
However, this is probably the best explanation I could find.
[from
http://homepages.tesco.net/J.deBoynePollard/FGA/web-browser-auto-proxy-c
onfiguration.html]

  "One caveat: Microsoft's Internet Explorer version 6.01 expects the
   string in option 252 to be NUL-terminated. As such, it
unconditionally
   strips off the final octet of the string before using it. Earlier
versions
   of Microsoft's Internet Explorer do not do this. To satisfy all
versions,
   simply explicitly include a NUL as the last octet of the string."



I can't find any notes for it in my configs but I'm sure I recall 
finding something even more devious than a single-octet truncation being 
done. My memories are of finding it would truncate "proxy.pac" => 
"proxy.pa" and others like "2007-proxy.pac" => "2007-pro"


Amos


RE: [squid-users] pac and dat woes

2007-05-10 Thread David Gameau
> -Original Message-
> From: Adrian Chadd [mailto:[EMAIL PROTECTED] 
> 
> On Fri, May 11, 2007, David Gameau wrote:
> > > I've made WPAD work but I've not made it work with a DHCP 
> > > configuration. I've done mine with DNS.
> > > 
> > > Does anyone here have an example of a WPAD+DHCP 
> > > configuration? If so I'd like to talk to you and document
> > > it on the Wiki.
> > > 
> > Here's what we use to support WPAD+DHCP:
> > [From dhcpd.conf, in the global section of the file]
> >   option option-252 code 252 = text;
> >   option option-252 "http://wpad.example.com/wpad.dat\n";;
> > 
> > Note that IE6 truncates the answer it gets (by dropping the
> > last character), which is why you need to include something
> > like '\n'.
> > 
> > I'm not sure whether Firefox supports DHCP for its autodiscovery.
> 
> Hm! How interesting. Do you have any tech references for that IE6
> WPAD behaviour?
> 
> Adrian
>
I can't find the singular authoritative source for the problem.
However, this is probably the best explanation I could find.
[from
http://homepages.tesco.net/J.deBoynePollard/FGA/web-browser-auto-proxy-c
onfiguration.html]

  "One caveat: Microsoft's Internet Explorer version 6.01 expects the
   string in option 252 to be NUL-terminated. As such, it
unconditionally
   strips off the final octet of the string before using it. Earlier
versions
   of Microsoft's Internet Explorer do not do this. To satisfy all
versions,
   simply explicitly include a NUL as the last octet of the string."

Regards,
David.
__

David Gameau
ISTS - Systems Infrastructure
University of South Australia

email: [EMAIL PROTECTED]
phone: +61 8 302 3533
fax:   +61 8 302 5800

Disclaimer: "His brain sometimes stops working." - Chiyo, Azumange Daoih



Re: [squid-users] pac and dat woes

2007-05-10 Thread Adrian Chadd
On Fri, May 11, 2007, David Gameau wrote:
> > I've made WPAD work but I've not made it work with a DHCP 
> > configuration. I've done mine with DNS.
> > 
> > Does anyone here have an example of a WPAD+DHCP 
> > configuration? If so I'd like to talk to you and document
> > it on the Wiki.
> > 
> Here's what we use to support WPAD+DHCP:
> [From dhcpd.conf, in the global section of the file]
>   option option-252 code 252 = text;
>   option option-252 "http://wpad.example.com/wpad.dat\n";;
> 
> Note that IE6 truncates the answer it gets (by dropping the
> last character), which is why you need to include something
> like '\n'.
> 
> I'm not sure whether Firefox supports DHCP for its autodiscovery.

Hm! How interesting. Do you have any tech references for that IE6
WPAD behaviour?



Adrian



Re: [squid-users] pac and dat woes

2007-05-10 Thread squid3
> On Thu, May 10, 2007, Pitti, Raul wrote:
>> I am having problem with Firefox 1.5, FF2.XX and IE 6 and 7 and proxy
>> autoconfiguration.  After a few days of searching and trying, i am
>> unable to use autoconfiguration for my proxy.
>
> I've made WPAD work but I've not made it work with a DHCP configuration.
> I've done mine with DNS.
>
> Does anyone here have an example of a WPAD+DHCP configuration? If so I'd
> like to talk to you and document it on the Wiki.
>

grr ... top-poster.

Yes I have WPAD+DHCP going. I encountered very similar problems.
There were two workaround I had to use

First, was discarding all the common online instructions. They only seem
to work for one or the other not both Ffx and IE.

DO NOT rename option 252 inside the dhcp config. Each time you need it
send it explicitly by number. There is something about the way most DHCP
agents do name aliasing that IE hates.

Secondly, the DNS wpad.* MUST have * equal to at least one of the 'domain'
settings in resolv.conf in linux and 'default-domain' in dhcp.conf for
windows (there is probably a machine domain config for windows but I don't
use it).

Aside from that, each Ffx has to be set explicitly to 'Automatically
Detect Network Settings'. The default is a forced DIRECT connection.

I will be back at the machines that do this in a few hours and can give
you exact examples then.

Amos

>>
>> 1. I have the following dhcpd.conf file:
>>
>> max-lease-time 28800;
>> default-lease-time 14400;
>> option subnet-mask 255.255.255.0;
>> ddns-update-style interim;
>> option WPAD code 252 = text;
>> #
>> # rimith.local
>> subnet 192.168.1.0 netmask 255.255.225.0 {
>> option WPAD "http://192.168.1.17/proxy.pac";;
>> option routers 192.168.1.20;
>> dynamic-bootp-lease-length 10;
>> ignore client-updates;
>> option domain-name-servers 192.168.1.17, 200.75.200.2;
>> max-lease-time 14400;
>> ddns-updates off;
>> default-lease-time 4000;
>> range 192.168.1.126 192.168.1.239;
>> }
>>
>> 2.  the MIME type has been set on the webserver.
>>
>> 3. also, i have my internal dns set to point wpad.rimith.local to the
>> server 192.168.1.17, and also i have a link for wpad.dat pointing to
>> proxy.pac on the root of the webserver.
>>
>> None of my clients are able to set the proxy automatically.  But if I
>> set the address for the pac file manually, everything works o.k.
>>
>> can someone shed some light on my problem?
>>
>> thanks!
>> RP
>>
>>
>>
>>
>>
>> --
>> 
>> Ra?l Pitt? Palma, Eng.
>>
>> Global Engineering and Technology S.A.
>> mobile (507)-6616-0194
>> office (507)-390-4338
>> Republic of Panama
>> www.globaltecsa.com
>
> --
> - Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid
> Support -
> - $25/pm entry-level bandwidth-capped VPSes available in WA -
>




Re: [squid-users] pac and dat woes

2007-05-10 Thread Tim Bates

David Gameau wrote:

Here's what we use to support WPAD+DHCP:
[From dhcpd.conf, in the global section of the file]
  option option-252 code 252 = text;
  option option-252 "http://wpad.example.com/wpad.dat\n";;

Note that IE6 truncates the answer it gets (by dropping the
last character), which is why you need to include something
like '\n'.

I'm not sure whether Firefox supports DHCP for its autodiscovery.
The alternative for IE6 is to have a symlink with the "t" missing from 
the name. That's how I did it anyway.
And AFAIK, DHCP-WPAD is really only effective for Windows running IE6/7. 
I'm fairly sure support for this method in other operating systems and 
browsers is pretty much non-existent.


TB

**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**


RE: [squid-users] pac and dat woes

2007-05-10 Thread David Gameau
> I've made WPAD work but I've not made it work with a DHCP 
> configuration. I've done mine with DNS.
> 
> Does anyone here have an example of a WPAD+DHCP 
> configuration? If so I'd like to talk to you and document
> it on the Wiki.
> 
Here's what we use to support WPAD+DHCP:
[From dhcpd.conf, in the global section of the file]
  option option-252 code 252 = text;
  option option-252 "http://wpad.example.com/wpad.dat\n";;

Note that IE6 truncates the answer it gets (by dropping the
last character), which is why you need to include something
like '\n'.

I'm not sure whether Firefox supports DHCP for its autodiscovery.

David.
__

David Gameau
ISTS - Systems Infrastructure
University of South Australia

email: [EMAIL PROTECTED]
phone: +61 8 302 3533
fax:   +61 8 302 5800

Disclaimer: "His brain sometimes stops working." - Chiyo, Azumange Daoih



Re: [squid-users] pac and dat woes

2007-05-10 Thread Adrian Chadd
On Thu, May 10, 2007, Pitti, Raul wrote:
> I am having problem with Firefox 1.5, FF2.XX and IE 6 and 7 and proxy 
> autoconfiguration.  After a few days of searching and trying, i am 
> unable to use autoconfiguration for my proxy.

I've made WPAD work but I've not made it work with a DHCP configuration.
I've done mine with DNS.

Does anyone here have an example of a WPAD+DHCP configuration? If so I'd
like to talk to you and document it on the Wiki.



Adrian

> 
> 1. I have the following dhcpd.conf file:
> 
> max-lease-time 28800;
> default-lease-time 14400;
> option subnet-mask 255.255.255.0;
> ddns-update-style interim;
> option WPAD code 252 = text;
> #
> # rimith.local
> subnet 192.168.1.0 netmask 255.255.225.0 {
> option WPAD "http://192.168.1.17/proxy.pac";;
> option routers 192.168.1.20;
> dynamic-bootp-lease-length 10;
> ignore client-updates;
> option domain-name-servers 192.168.1.17, 200.75.200.2;
> max-lease-time 14400;
> ddns-updates off;
> default-lease-time 4000;
> range 192.168.1.126 192.168.1.239;
> }
> 
> 2.  the MIME type has been set on the webserver.
> 
> 3. also, i have my internal dns set to point wpad.rimith.local to the 
> server 192.168.1.17, and also i have a link for wpad.dat pointing to 
> proxy.pac on the root of the webserver.
> 
> None of my clients are able to set the proxy automatically.  But if I 
> set the address for the pac file manually, everything works o.k.
> 
> can someone shed some light on my problem?
> 
> thanks!
> RP
> 
> 
> 
> 
> 
> -- 
> 
> Ra?l Pitt? Palma, Eng.
> 
> Global Engineering and Technology S.A.
> mobile (507)-6616-0194
> office (507)-390-4338
> Republic of Panama
> www.globaltecsa.com

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level bandwidth-capped VPSes available in WA -


[squid-users] pac and dat woes

2007-05-10 Thread Pitti, Raul
I am having problem with Firefox 1.5, FF2.XX and IE 6 and 7 and proxy 
autoconfiguration.  After a few days of searching and trying, i am 
unable to use autoconfiguration for my proxy.


1. I have the following dhcpd.conf file:

max-lease-time 28800;
default-lease-time 14400;
option subnet-mask 255.255.255.0;
ddns-update-style interim;
option WPAD code 252 = text;
#
# rimith.local
subnet 192.168.1.0 netmask 255.255.225.0 {
option WPAD "http://192.168.1.17/proxy.pac";;
option routers 192.168.1.20;
dynamic-bootp-lease-length 10;
ignore client-updates;
option domain-name-servers 192.168.1.17, 200.75.200.2;
max-lease-time 14400;
ddns-updates off;
default-lease-time 4000;
range 192.168.1.126 192.168.1.239;
}

2.  the MIME type has been set on the webserver.

3. also, i have my internal dns set to point wpad.rimith.local to the 
server 192.168.1.17, and also i have a link for wpad.dat pointing to 
proxy.pac on the root of the webserver.


None of my clients are able to set the proxy automatically.  But if I 
set the address for the pac file manually, everything works o.k.


can someone shed some light on my problem?

thanks!
RP





--

Raúl Pittí Palma, Eng.

Global Engineering and Technology S.A.
mobile (507)-6616-0194
office (507)-390-4338
Republic of Panama
www.globaltecsa.com