Ticket #846 (closed bug: fixed)
DHCP leases on LAN use the static WAN netmask
|Reported by:||matthijs||Owned by:||john.crispin@…|
If you configure a static WAN address, its netmask is used to determine the DHCP range and it is passed to dnsmasq as the netmask to use for DHCP leases.
This does not normally show, since most users use /24 on all networks. To reproduce: configure a static WAN ip with 255.255.0.0 or something similar, reboot or restart dnsmasq and do a DHCP request on the LAN interface. You'll get the 255.255.0.0 netmask instead of the 255.255.255.0 that's configured on the LAN interface.
It seems this issue only occurs on 2.0g (using a custom 18.104.22.168 build), it does not seem to occur on 2.0n for some reason.
This issue was originally noticed by Hans Hommes and confirmed by me.