Main repository for pfSense
Go to file
Phil Davis 9228166f43 Ignore DHCP pools that are out of range
If the user changes the subnet of an interface then applies without
adjusting the DHCP pool range/s to be in the new subnet, then an invalid
dhcpd.conf is generated. The DHCP server complains about it and exits.
If you have only 1 LAN with DHCP then it does not make a difference -
you are not going to get DHCP whatever happens because there is no valid
pool data. But if there are multiple LAN-style interfaces with DHCP then
you can cause no DHCP-service on LAN when you are messing with settings
on OPT1/OPT2...

I did this to myself last night, and even after rebooting got no DHCP
for either my LAN or OPT1, just because the OPT1 pool settings were bad.

This change checks that the pool ranges are in the interface subnet. If
they are not, then they are excluded from dhcpd.conf and a notice os
filed. The user gets the flashing notice stuff on the webGUI to tell
them what is wrong. And any other good DHCP interfaces+pools continue to
work.
This is a resubmit of PR #1783 after integrating to the current master.
2015-08-26 12:29:27 +05:45
src Ignore DHCP pools that are out of range 2015-08-26 12:29:27 +05:45
tools Fix i386 kernel names 2015-08-25 15:44:30 -03:00
.editorconfig Add .inc files to editorconfig 2015-05-22 10:30:23 -03:00
.gitattributes include gettext locales in line encoding list 2014-01-13 22:05:10 -05:00
.gitignore Adapt tools scripts for pfSense main repo (round #1): 2015-08-25 14:49:54 -03:00
build.conf.sample Add more options to builder.conf.sample and also add missing export 2015-08-25 14:49:58 -03:00
build.sh We need to have FreeBSD-src repo to setup builder since pkg conf is there 2015-08-25 14:49:58 -03:00
license.txt Fix whitespaces 2015-08-24 18:00:17 -03:00