diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-16 18:31:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-16 18:31:41 +0000 |
commit | 41c649df506ae9edc42a308d237751c27244c95d (patch) | |
tree | 403fd8dc9032866563a570b80b8eefa237a19732 | |
parent | f6a68bf726864bfbb03c26b0b539b9489c820bd2 (diff) | |
download | pfsense-41c649df506ae9edc42a308d237751c27244c95d.zip pfsense-41c649df506ae9edc42a308d237751c27244c95d.tar.gz |
Add Dynamic DNS support to IPSEC.
-rw-r--r-- | etc/inc/vpn.inc | 3 | ||||
-rwxr-xr-x | usr/local/www/vpn_ipsec_edit.php | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index dc9d82e..11f7689 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -276,6 +276,9 @@ EOD; } else if (isset($tunnel['p1']['myident']['ufqdn'])) { $myidentt = "user_fqdn"; $myident = $tunnel['p1']['myident']['ufqdn']; + } else if (isset($tunnel['p1']['myident']['dyn_dns'])) { + $myidentt = "dyn_dns"; + $myident = gethostbyname($tunnel['p1']['myident']['dyn_dns']); } if (isset($tunnel['p1']['authentication_method'])) { diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php index 9ed4b00..14991a6 100755 --- a/usr/local/www/vpn_ipsec_edit.php +++ b/usr/local/www/vpn_ipsec_edit.php @@ -174,8 +174,8 @@ if ($_POST) { } 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 (!is_domain($dyn_dns[1])) + //$input_errors[] = "A valid Dynamic DNS address for 'My identifier' must be specified."; } if ($_POST['p1myidentt'] == "myaddress") |