summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-15 22:42:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-15 22:42:34 +0000
commit52e5d56a3ce2cc62fd428670ba1dd4c0b8e125d2 (patch)
tree9a5ebece96ec55be675e83df21915c4f38aa444a /usr/local/www/vpn_ipsec_edit.php
parentee7f808ea6e971ffe17eff070888aa08240c357b (diff)
downloadpfsense-52e5d56a3ce2cc62fd428670ba1dd4c0b8e125d2.zip
pfsense-52e5d56a3ce2cc62fd428670ba1dd4c0b8e125d2.tar.gz
Accept Dynamic DNS values
Diffstat (limited to 'usr/local/www/vpn_ipsec_edit.php')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index d04f34f..9ed4b00 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -71,7 +71,10 @@ if (isset($id) && $a_ipsec[$id]) {
} else if (isset($a_ipsec[$id]['p1']['myident']['ufqdn'])) {
$pconfig['p1myidentt'] = 'user_fqdn';
$pconfig['p1myident'] = $a_ipsec[$id]['p1']['myident']['ufqdn'];
- }
+ } else if (isset($a_ipsec[$id]['p1']['myident']['dyn_dns'])) {
+ $pconfig['p1myidentt'] = 'dyn_dns';
+ $pconfig['p1myident'] = $a_ipsec[$id]['p1']['myident']['dyn_dns'];
+ }
$pconfig['p1ealgo'] = $a_ipsec[$id]['p1']['encryption-algorithm'];
$pconfig['p1halgo'] = $a_ipsec[$id]['p1']['hash-algorithm'];
@@ -168,6 +171,11 @@ if ($_POST) {
$ufqdn = explode("@",$_POST['p1myident']);
if (!is_domain($ufqdn[1]))
$input_errors[] = "A valid User FQDN in the form of user@my.domain.com for 'My identifier' must be specified.";
+ }
+ if ($_POST['p1myidentt'] == "dyn_dns") {
+ $dyn_dns = explode("@",$_POST['p1myident']);
+ if (!is_domain($dyn_dns[1]))
+ $input_errors[] = "A valid Dynamic DNS address for 'My identifier' must be specified.";
}
if ($_POST['p1myidentt'] == "myaddress")
@@ -196,6 +204,9 @@ if ($_POST) {
case 'user_fqdn':
$ipsecent['p1']['myident']['ufqdn'] = $_POST['p1myident'];
break;
+ case 'dyn_dns':
+ $ipsecent['p1']['myident']['dyn_dns'] = $_POST['p1myident'];
+ break;
}
$ipsecent['p1']['encryption-algorithm'] = $_POST['p1ealgo'];
OpenPOWER on IntegriCloud