Discussion:
[Dnsmasq-discuss] Option-252 ?
Phibee Network Operation Center
2008-03-12 17:41:45 UTC
Permalink
Hi

anyone know why the option 252 are not sent/requested ?

My config:

dhcp-authoritative

dhcp-range=hotspot,10.20.10.1,10.20.10.200,255.255.255.0,24h
dhcp-leasefile=/tmp/dhcp.leases
read-ethers

dhcp-option=hotspot,3,10.20.10.254
dhcp-option=hotspot,6,10.20.10.254
dhcp-option=hotspot,40,hotspot.int
dhcp-option=hotspot,119,hotspot.int
dhcp-option=hotspot,252,http://10.20.10.254/proxy.pac


Logs:
Mar 12 17:31:17 gw dnsmasq[22582]: DHCP packet: transaction-id is 3991011077
Mar 12 17:31:17 gw dnsmasq[22582]: Available DHCP range: 10.20.10.1 --
10.20.10.200
Mar 12 17:31:17 gw dnsmasq[22582]: Vendor class: MSFT 5.0
Mar 12 17:31:17 gw dnsmasq[22582]: DHCPREQUEST(eth4) 10.20.10.198
00:18:de:94:4d:5f
Mar 12 17:31:17 gw dnsmasq[22582]: DHCPACK(eth4) 10.20.10.198
00:18:de:94:4d:5f MAETTI
Mar 12 17:31:17 gw dnsmasq[22582]: requested options: 1:netmask,
15:domain-name, 3:router, 6:dns-server,
Mar 12 17:31:17 gw dnsmasq[22582]: requested options: 44:netbios-ns,
46:netbios-nodetype, 47:netbios-scope,
Mar 12 17:31:17 gw dnsmasq[22582]: requested options:
31:router-discovery, 33:static-route, 249,
Mar 12 17:31:17 gw dnsmasq[22582]: requested options: 43:vendor-encap
Mar 12 17:31:17 gw dnsmasq[22582]: tags: hotspot
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 1 option: 53:message-type 05
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option:
54:server-identifier 0a:1c:0c:fe
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 51:lease-time
00:01:51:80
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 58:T1 00:00:a8:c0
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 59:T2 00:01:27:50
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 1:netmask
ff:ff:ff:00
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 28:broadcast
0a:1c:0c:ff
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 11 option: 15:domain-name
68:6f:74:73:70:6f:74:2e:69:6e:74
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 27 option: 81:FQDN
03:ff:ff:4d:41:52:43:46:45:52:52:45:54...
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 6:dns-server
0a:1c:0c:fe
Mar 12 17:31:17 gw dnsmasq[22582]: sent size: 4 option: 3:router
0a:1c:0c:fe


Thanks for your help
Rune Kock
2008-03-12 18:20:31 UTC
Permalink
On Wed, Mar 12, 2008 at 6:41 PM, Phibee Network Operation Center
Post by Phibee Network Operation Center
Hi
anyone know why the option 252 are not sent/requested ?
It's entirely up to the DHCP-client which options to request. And any
DHCP-server will only send those options requested.

If you tell us about the configuration of the client, someone on the
list may know something. But it is probably off-topic, as it's not a
matter of changing the configuration of dnsmasq.
Jan Psota
2008-03-12 20:22:19 UTC
Permalink
Post by Phibee Network Operation Center
anyone know why the option 252 are not sent/requested ?
Maybe You should try to use --dhcp-option-force=....

--
jasiu
Phibee Network Operation Center
2008-03-13 14:26:13 UTC
Permalink
Hi Jasiu,

Very good your post, now the worstation get the option 252
and request the proxy.pac. Thanks for your help.

Now, we have a new small problems but it's not for dnsmasq,
i am sorry i don't know where i can sent the question.

Now with the option 252, the workstation get the proxy.pac
but into this proxy.pac, can i said it that:
uncheck "use script configuration"
uncheck "Use a proxy server" (specified manually) ?

Thanks for your help
Jerome



Thanks for your help
Post by Jan Psota
Post by Phibee Network Operation Center
anyone know why the option 252 are not sent/requested ?
Maybe You should try to use --dhcp-option-force=....
--
jasiu
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
r***@gmail.com
2008-03-14 04:55:38 UTC
Permalink
Post by Phibee Network Operation Center
Hi Jasiu,
Very good your post, now the worstation get the option 252
and request the proxy.pac. Thanks for your help.
Now, we have a new small problems but it's not for dnsmasq,
i am sorry i don't know where i can sent the question.
Now with the option 252, the workstation get the proxy.pac
uncheck "use script configuration"
uncheck "Use a proxy server" (specified manually) ?
No, you can't do that exactly. The "proxy.pac" IS the script
configuration, and won't even be processed unless those boxes are
checked and unchecked respectively. However, the script can be
configured for "no proxy". Just return "DIRECT" for all URLs.

http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
Post by Phibee Network Operation Center
Thanks for your help
Jerome
Thanks for your help
Post by Jan Psota
Post by Phibee Network Operation Center
anyone know why the option 252 are not sent/requested ?
Maybe You should try to use --dhcp-option-force=....
--
jasiu
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
B. Cook
2008-03-26 14:28:53 UTC
Permalink
Sorry for the late post..

but this is what we use in our network for proxy.pac..

(A little bit cleaner than the netscape one..)

# start
function FindProxyForURL(url, host)
{
if (
(isPlainHostName(host)) ||
(dnsDomainIs(host, "tcentral.local")) ||
(isInNet(host, "127.0.0.0", "255.0.0.0")) ||
(isInNet(host, "10.0.0.0", "255.0.0.0")) ||
(isInNet(host, "172.16.0.0", "255.240.0.0")) ||
(isInNet(host, "192.168.0.0", "255.255.0.0")) ||
(isInNet(host, "169.254.0.0", "255.255.0.0"))
)
return "DIRECT";

else

if (
(isInNet(myIpAddress(), "192.168.10.0", "255.255.255.0"))
)
return "PROXY 192.168.10.1:800";
}
# end

I think someone found this via some linux firewall package.. but we
use a wpad dns entry and then just link proxy.pac to wpad.dat..

Never got the dhcp option to work all the time..

We run Macs and PCs.. OSX doesn't have an 'auto detect proxy' for
safari.. camino uses the OS settings (which don't work) and only
firefox has an 'auto detect' settings..

anyway just my .02.

HTH
Post by Phibee Network Operation Center
Hi Jasiu,
Very good your post, now the worstation get the option 252
and request the proxy.pac. Thanks for your help.
Now, we have a new small problems but it's not for dnsmasq,
i am sorry i don't know where i can sent the question.
Now with the option 252, the workstation get the proxy.pac
uncheck "use script configuration"
uncheck "Use a proxy server" (specified manually) ?
Thanks for your help
Jerome
Thanks for your help
Post by Jan Psota
Post by Phibee Network Operation Center
anyone know why the option 252 are not sent/requested ?
Maybe You should try to use --dhcp-option-force=....
--
jasiu
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...