[Dnsmasq-discuss] Dnsmasq ignoring "network matching tag" for range
- bug?
krzysztof.kozlowski at kozik.net.pl
krzysztof.kozlowski at kozik.net.pl
Tue Nov 20 12:09:45 GMT 2007
A client requests an address from a dhcp-range which require special user tag ("trusted"). Dnsmasq should ignore this request (DHCPNAK) and give an address from other range. But it does not - it ignores rule "net:XXX" in dhcp-range and give an address from the special range. Why? It shouldn't :/.
Normally on each request I can see in logs something like "tags: known, trusted" etc. but in this case there are not any these entries.
dnsmasq 2.40, Linux Gentoo 2.6.22-gentoo-r9, x86
(Linux cisco 2.6.22-gentoo-r9-CISCO-0.9.2 #1 Wed Nov 7 14:53:21 CET 2007 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux)
CONFIG:
-------------------------------
domain-needed
bogus-priv
local=/labo/
interface=eth1
expand-hosts
dhcp-userclass=trusted,trusted # mapping user tag "trusted" to our network
dhcp-range=untrusted,192.168.2.1,192.168.2.250,1h # give this to everyone
dhcp-range=net:trusted,192.168.1.10,192.168.1.99,5m # give this to "trusted"
dhcp-hostsfile=/etc/dnsmasq-hosts.conf # static mappings
dhcp-authoritative
-------------------------------
LOGS:
-------------------------------
DHCP packet: transaction-id is 3330377315
Available DHCP range: 192.168.2.1 -- 192.168.2.250
Available DHCP range: 192.168.1.10 -- 192.168.1.99
Vendor class: MSFT 5.0
DHCPREQUEST(eth1) 192.168.1.68 00:13:02:8e:b5:d9
DHCPACK(eth1) 192.168.1.68 00:13:02:8e:b5:d9 PC279572096019
requested options: 1:netmask, 15:domain-name, 3:router, 6:dns-server,
requested options: 44:netbios-ns, 46:netbios-nodetype, 47:netbios-scope,
requested options: 31:router-discovery, 33:static-route, 249,
requested options: 43:vendor-encap
sent size: 1 option: 53:message-type 05
sent size: 4 option: 54:server-identifier c0:a8:01:01
sent size: 4 option: 51:lease-time 00:00:01:2c
sent size: 4 option: 58:T1 00:00:00:87
sent size: 4 option: 58:T1 00:00:00:87
sent size: 4 option: 59:T2 00:00:00:f4
sent size: 4 option: 1:netmask ff:ff:00:00
sent size: 4 option: 28:broadcast c0:a8:ff:ff
sent size: 4 option: 3:router c0:a8:01:01
sent size: 4 option: 6:dns-server c0:a8:01:01
sent size: 4 option: 15:domain-name 6c:61:62:6f
sent size: 22 option: 81:FQDN 03:ff:ff:50:43:32:37:39:35:37:32:30:39...
-------------------------------
More information about the Dnsmasq-discuss
mailing list