summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcpv6.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-02-17 09:57:55 -0200
committerRenato Botelho <renato@netgate.com>2016-02-17 09:57:55 -0200
commit391d63da8fa0c46daa7275c225222dff5ec2522b (patch)
tree01576f6effeaf9d250f70066f24dcdc7c083d3b1 /src/usr/local/www/services_dhcpv6.php
parent4c62c1ff5055339478166bf4e3bd7e902acff5ef (diff)
downloadpfsense-391d63da8fa0c46daa7275c225222dff5ec2522b.zip
pfsense-391d63da8fa0c46daa7275c225222dff5ec2522b.tar.gz
Fix #4675
Following bugs and improvements on DHCPv6 DDNS area, obtained from PR #1638 from @Robert-Nelson: - Use correct domain (ddnsdomain) instead of (domain) - The option "deny client-updates" wasn't being set so forward entries weren't being added. Allow user to chose between allow, deny or ignore - Implement reverse DNZ zone information (PTR)
Diffstat (limited to 'src/usr/local/www/services_dhcpv6.php')
-rw-r--r--src/usr/local/www/services_dhcpv6.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php
index e1c3e8c..e8ac503 100644
--- a/src/usr/local/www/services_dhcpv6.php
+++ b/src/usr/local/www/services_dhcpv6.php
@@ -132,6 +132,8 @@ if (is_array($config['dhcpdv6'][$if])) {
$pconfig['ddnsdomainkeyname'] = $config['dhcpdv6'][$if]['ddnsdomainkeyname'];
$pconfig['ddnsdomainkey'] = $config['dhcpdv6'][$if]['ddnsdomainkey'];
$pconfig['ddnsupdate'] = isset($config['dhcpdv6'][$if]['ddnsupdate']);
+ $pconfig['ddnsreverse'] = isset($config['dhcpdv6'][$if]['ddnsreverse']);
+ $pconfig['ddnsclientupdates'] = $config['dhcpdv6'][$if]['ddnsclientupdates'];
list($pconfig['ntp1'], $pconfig['ntp2']) = $config['dhcpdv6'][$if]['ntpserver'];
$pconfig['tftp'] = $config['dhcpdv6'][$if]['tftp'];
$pconfig['ldap'] = $config['dhcpdv6'][$if]['ldap'];
@@ -364,6 +366,8 @@ if ($_POST) {
$config['dhcpdv6'][$if]['ddnsdomainkeyname'] = $_POST['ddnsdomainkeyname'];
$config['dhcpdv6'][$if]['ddnsdomainkey'] = $_POST['ddnsdomainkey'];
$config['dhcpdv6'][$if]['ddnsupdate'] = ($_POST['ddnsupdate']) ? true : false;
+ $config['dhcpdv6'][$if]['ddnsreverse'] = ($_POST['ddnsreverse']) ? true : false;
+ $config['dhcpdv6'][$if]['ddnsclientupdates'] = $_POST['ddnsclientupdates'];
unset($config['dhcpdv6'][$if]['ntpserver']);
if ($_POST['ntp1']) {
@@ -729,6 +733,26 @@ $section->addInput(new Form_Input(
$pconfig['ddnsdomainkey']
))->setHelp('Enter the dynamic DNS domain key secret which will be used to register client names in the DNS server.');
+$section->addInput(new Form_Select(
+ 'ddnsclientupdates',
+ 'DDNS Client Updates',
+ $pconfig['ddnsclientupdates'],
+ array(
+ 'allow' => gettext('Allow'),
+ 'deny' => gettext('Deny'),
+ 'ignore' => gettext('Ignore'))
+))->setHelp('How Forward entries are handled when client indicates they wish to update DNS. ' .
+ 'Allow prevents DHCP from updating Forward entries, Deny indicates that DHCP will ' .
+ 'do the updates and the client should not, Ignore specifies that DHCP will do the ' .
+ 'update and the client can also attempt the update usually using a different domain name.');
+
+$section->addInput(new Form_Checkbox(
+ 'ddnsreverse',
+ 'DDNS Reverse',
+ 'Add reverse dynamic DNS entries.',
+ $pconfig['ddnsreverse']
+));
+
$btnntp = new Form_Button(
'btnntp',
'Advanced'
@@ -967,6 +991,8 @@ events.push(function() {
hideInput('ddnsdomainprimary', hide);
hideInput('ddnsdomainkeyname', hide);
hideInput('ddnsdomainkey', hide);
+ hideInput('ddnsclientupdates', hide);
+ hideCheckbox('ddnsreverse', hide);
}
// Make the 'Copy My MAC' button a plain button, not a submit button
OpenPOWER on IntegriCloud