Ticket #846 (closed bug: fixed)
DHCP leases on LAN use the static WAN netmask
| Reported by: | matthijs | Owned by: | john.crispin@… |
|---|---|---|---|
| Priority: | normal | Milestone: | Firmware 2.3.7.0 |
| Component: | fon-network | Version: | 2.3.6.0 (Gari) |
| Severity: | minor | ||
| Cc: | hommes.hans@… | Hardware: | 2.0g (FON2202) |
Description
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 2.3.6.0 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.
