Jamie Cameron wrote:
> On 09/Jun/2008 19:02 Richard Chapman wrote ..
>
>> Jamie Cameron wrote:
>>
>>> On 09/Jun/2008 09:42 Richard Chapman wrote ..
>>>
>>>
>>>> Hi Jamie
>>>>
>>>> Sorry if this is a repeat. I had a thunderbird hang - and not sure
>>>> whether it was sent..
>>>>
>>>> I have been trying to get Web Proxy Auto detection working and have been
>>>> following various texts including these ones:
>>>>
>>>> http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
>>>> http://www.wrec.org/Drafts/draft-cooper-webi-wpad-00.txt
>>>> Particularly Section 5.4.1 on DHCP.
>>>>
>>>> I seem to have a problem getting webmin to set up the appropriate
>>>> "custom options" in the client options page of DHCPD.
>>>>
>>>> If I put a number of 252 in the custom option - the config file ends up
>>>> with the following:
>>>>
>>>> option option-252 "http://192.168.0.201/wpad.pac";
>>>>
>>>> My DHCPD (ISC DHCPd version 3.0.5) coughs up this line. Doesn't like it
>>>> at all. It seems to object to the term "option-252"
>>>> It similarly coughs up "option-WPAD" - but is happy with just "WPAD"
>>>>
>>>> I have hand edited the config file to something like this:
>>>>
>>>> option WPAD code 252 = string;
>>>> ddns-update-style ad-hoc;
>>>> # Home network
>>>> subnet 192.168.0.0 netmask 255.255.255.0 {
>>>> option WPAD "http://192.168.0.201/proxy.pac";
>>>> ....
>>>>
>>>> and dhcpd seems happy with the last line. I created the first line with
>>>> webmin - but can't seem to find a way to create the last line with
>>>> webmin (except editing the file of course).
>>>>
>>>> I realise this may be a fairly obscure problem - and I may be
>>>> misunderstanding something - but it appears to me that there may be an
>>>> incompatibility between this webmin (current) and the DHCPD I have.
>>>>
>>>> In case anyone is interested - I have the Proxy Autoconfigure working
>>>> with IE - but still not firefox. Firefox doesn't seem to want to use the
>>>> DHCP features of the WPAD protocol
>>>>
>>>>
>>> Which DHCPd version are you running there? On my system (running version 3),
>>> the option option-252 "http://www.../" line works fine. But it is possible the
>>> syntax has changed..
>>>
>>> - Jamie
>>>
>>>
>>>
>>>
>> Hmmm... That IS strange. Mine reports as:
>> ISC DHCPd version 3.0.5
>> Which seems very like yours. Surely they wouldn't change the syntax in
>> such a minor revision. Is yours also the ISC module? I can't recall
>> whether this is the standard Centos 5 version - or whether I installed
>> it later using webmin. Quite likely the latter - because I built the
>> system in an existing network with existing DHCp then added DHCP and
>> replaced the previous server.
>>
>> I wonder if there is something else going on here... Is "option-252"
>> defined somewhere in your code - or in the ISC code? I can't find any
>> reference to option-xxx in the dhcp.conf man pages. Is yours defined in
>> the "Global Client Options" or within a subnet or scope? I think I have
>> tried both - and it didn't seem to like either.
>>
>
> I looked into this, and found that the newer DHCPd releases don't support
> the option-XXX format anymore - instead you need to use directives like :
>
> option proxy code 252 = string;
> option proxy "http://www.foo.com/";
>
> I will add fields to the UI in the next Webmin release to support this..
>
> - Jamie
>
>
>
Thanks Jamie
Yes. I didn't find anything to tell me the new syntax but somehow or
other stumbled across it. I am surprised they would make such a change
in minor release.
Interestingly - the first line of the above can be generated with Webmin
- but I haven't found a way to generate the second line - except editing
the config file of course - which did it fine.
Thanks for all your work on this fine product.
Regards
Richard.
|