summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-02-16 13:00:47 -0500
committerjim-p <jimp@pfsense.org>2016-02-16 13:00:47 -0500
commit8209517de8a4d09dbbb5837a587539255926e4b9 (patch)
treee3b58c0aeb21bc1498d2c5a6867221399cd2e8b3 /src/usr/local/www/services_dhcp.php
parent3185f659cd3ec7157595b3b701a371b21292e706 (diff)
downloadpfsense-8209517de8a4d09dbbb5837a587539255926e4b9.zip
pfsense-8209517de8a4d09dbbb5837a587539255926e4b9.tar.gz
Prevent "Ignore denied clients" and "Failover Peer IP" from being combined in the DHCP server settings for IPv4. The daemon fails to start when configured in this way, it apparently only allows "allow" or "deny" in failover mode. Fixes #5898
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index f5dc6e4..f477320 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -266,6 +266,10 @@ if (isset($_POST['submit'])) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
+ if (($_POST['nonak']) && !empty($_POST['failover_peerip'])) {
+ $input_errors[] = gettext("Ignore Denied Clients may not be used when a Failover Peer IP is defined.");
+ }
+
if (($_POST['range_from'] && !is_ipaddrv4($_POST['range_from']))) {
$input_errors[] = gettext("A valid range must be specified.");
}
@@ -803,7 +807,7 @@ $section->addInput(new Form_Checkbox(
'Ignore denied clients',
'Denied clients will be ignored rather than rejected.',
$pconfig['nonak']
-));
+))->setHelp("This option is not compatible with failover and cannot be enabled when a Failover Peer IP address is configured.");
if (is_numeric($pool) || ($act == "newpool")) {
OpenPOWER on IntegriCloud