Ticket #846 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

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.

Attachments

Change History

Changed 3 years ago by matthijs

  • status changed from new to confirmed

Changed 3 years ago by OldMan

This is the same problem as closed ticket 353, but with more info to reproduce the problem. So that 353 can be solved when this is solved.

Changed 2 years ago by matthijs

  • status changed from confirmed to closed
  • resolution set to fixed

(In [1818]) fonbase: Fix typo when retrieving lan netmask.

The wan netmask was retrieved instead of the lan netmask. This caused the dhcp server to use the wan netmask in its leases when a static wan ip was configured.

Note that this is a 2.0g specific file, the 2.0n version doesn't have this typo.

Closes: #846

Add/Change #846 (DHCP leases on LAN use the static WAN netmask)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
 
Note: See TracTickets for help on using tickets.