summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_server.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-20 12:33:39 -0500
committerjim-p <jimp@pfsense.org>2011-01-20 12:33:39 -0500
commitbca35cff4671b178584f677d4031ed40bbbd021a (patch)
tree6084fd569e2c57193800345df79e4dd676e481ef /usr/local/www/vpn_openvpn_server.php
parent09e11b69471b81bb92f72b060fb2e0e8f9d24f78 (diff)
downloadpfsense-bca35cff4671b178584f677d4031ed40bbbd021a.zip
pfsense-bca35cff4671b178584f677d4031ed40bbbd021a.tar.gz
Add a checkbox for duplicate-cn on OpenVPN servers.
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r--usr/local/www/vpn_openvpn_server.php25
1 files changed, 24 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index 9d7c00d..002702c 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -176,6 +176,8 @@ if($_GET['act']=="edit"){
// just in case the modes switch
$pconfig['autokey_enable'] = "yes";
$pconfig['autotls_enable'] = "yes";
+
+ $pconfig['duplicate_cn'] = isset($a_server[$id]['duplicate_cn']);
}
}
@@ -364,7 +366,10 @@ if ($_POST) {
if ($pconfig['dns_server_enable'])
$server['nbdd_server1'] = $pconfig['nbdd_server1'];
}
-
+
+ if ($_POST['duplicate_cn'] == "yes")
+ $server['duplicate_cn'] = true;
+
if (isset($id) && $a_server[$id])
$a_server[$id] = $server;
else
@@ -1012,6 +1017,24 @@ if ($savemsg)
</table>
</td>
</tr>
+ <tr id="duplicate_cn">
+ <td width="22%" valign="top" class="vncell"><?=gettext("Duplicate Connections"); ?></td>
+ <td width="78%" class="vtable">
+ <table border="0" cellpadding="2" cellspacing="0">
+ <tr>
+ <td>
+ <?php set_checked($pconfig['duplicate_cn'],$chk); ?>
+ <input name="duplicate_cn" type="checkbox" value="yes" <?=$chk;?>/>
+ </td>
+ <td>
+ <span class="vexpl">
+ <?=gettext("Allow multiple concurrent connections from clients using the same Common Name.<br/>NOTE: This is not generally recommended, but may be needed for some scenarios."); ?>
+ </span>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
</table>
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts">
OpenPOWER on IntegriCloud