summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-04-28 18:28:26 -0400
committerjim-p <jim@pingle.org>2010-04-28 18:28:26 -0400
commitdf6df70fd0aa2c39018b28e2f29a5dc01113237c (patch)
tree5d69fc7d472d749c37575c0d80f70586f28cd295 /usr/local
parent599d5c6298184905465aefbadb68a237f14b06da (diff)
downloadpfsense-df6df70fd0aa2c39018b28e2f29a5dc01113237c.zip
pfsense-df6df70fd0aa2c39018b28e2f29a5dc01113237c.tar.gz
Add dynamic IP option to OpenVPN wizard.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/wizards/openvpn_wizard.inc2
-rw-r--r--usr/local/www/wizards/openvpn_wizard.xml8
2 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc
index eea1a85..9be787c 100644
--- a/usr/local/www/wizards/openvpn_wizard.inc
+++ b/usr/local/www/wizards/openvpn_wizard.inc
@@ -538,6 +538,8 @@ function step12_submitphpaction() {
$server['passtos'] = $pconfig['step10']['tos'];
if (isset($pconfig['step10']['interclient']))
$server['client2client'] = $pconfig['step10']['interclient'];
+ if (isset($pconfig['step10']['dynip']))
+ $server['dynamic_ip'] = $pconfig['step10']['dynip'];
if (isset($pconfig['step10']['addrpool']))
$server['pool_enable'] = $pconfig['step10']['addrpool'];
if (isset($pconfig['step10']['defaultdomain']))
diff --git a/usr/local/www/wizards/openvpn_wizard.xml b/usr/local/www/wizards/openvpn_wizard.xml
index 2bc6db1..bba38c8 100644
--- a/usr/local/www/wizards/openvpn_wizard.xml
+++ b/usr/local/www/wizards/openvpn_wizard.xml
@@ -757,6 +757,14 @@
<name>Client Settings</name>
</field>
<field>
+ <displayname>Dynamic IP</displayname>
+ <name>dynip</name>
+ <type>checkbox</type>
+ <value>on</value>
+ <description>Allow connected clients to retain their connections if their IP address changes.</description>
+ <bindstofield>ovpnserver->step10->dynip</bindstofield>
+ </field>
+ <field>
<displayname>Address Pool</displayname>
<name>addrpool</name>
<type>checkbox</type>
OpenPOWER on IntegriCloud