Bug #5722
closedservices_dhcp pool and static mapping validations
0%
Description
This is part of https://redmine.pfsense.org/issues/5720 items 3 and 4 plus other validation issues that I found.
1) When adding or editing pools the pool range is not being checked to see if any existing static mapping falls within the pool range. This is because $a_maps[] array was not getting setup when processing pool add/edit.
2) If you add a pool that completely covers the ordinary DHCP range for an interface, that passes validation because the existing code only checks if the start or end of the pool is in the ordinary DHCP range. e.g. ordinary DHCP range is 192.168.1.30 to 192.168.1.50 then add a pool 192.168.1.20 to 192.168.1.60 - passes validation when it should not.
3) If you add/edit a pool that completely covers the range of another pool, that passes validation because the existing code only checks if the start or end of the added/edited pool is in the range of the other pool. This is a similar problem to item (2).
4) If you try to define an ordinary DHCP range or a pool that starts or ends at an existing static mapping entry IP address, then it passes validation when it should not.