not sure if you want to block at all, but that might be better done in iptables.
On Thu, 17 Aug 2006, [ISO-8859-1] Jürgen Steinel wrote: > Hi, > > today I wanted to disable routing for a single host. That machine gets > its IP from dnsmasq. > > In the dnsmasq.conf I added an entry to assign the host to a > network-group and set an option for this group that should disable the > gateway. > > dhcp-host=<host>,<ip>,net:norouting > dhcp-option=norouting,3,0.0.0.0 > > Unfortunately this did not have the expected effect. The host got the IP > mentioned in dhcp-host but was still told where the (actual) router is. > > I captured the dhcp-request/reply to make sure the Information came from > dnsmasq (and was not cached by the client). Dnsmasq *did* deliver the > Information. > > To test if dhcp-option does anything at all I changed the above line to > this: > > dhcp-option=norouting,3,1.2.3.4 > > After requesting a new IP the client got 1.2.3.4 as default gateway. > > > I think this behaviour is wrong (=ignore option if given IP is 0) and > even if it is intented it should be mentioned in the manual. > > Is there a different way to set an option to a zero-value? > > -Jürgen > > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >