summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_client.php
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-28 17:29:36 -0500
committersullrich <sullrich@pfsense.org>2009-11-28 17:29:36 -0500
commitc7323d810e75e03f9b8560e234cae2bbd76c558d (patch)
treec683b0bd49bc6c2f5f2952ff9b979294aa312e30 /usr/local/www/vpn_openvpn_client.php
parente6dd418dc423a71802007148598f12c3e622e35d (diff)
downloadpfsense-c7323d810e75e03f9b8560e234cae2bbd76c558d.zip
pfsense-c7323d810e75e03f9b8560e234cae2bbd76c558d.tar.gz
Add openvpn client custom option. Ticket #103
Diffstat (limited to 'usr/local/www/vpn_openvpn_client.php')
-rw-r--r--usr/local/www/vpn_openvpn_client.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php
index 060c24e..42f1de7 100644
--- a/usr/local/www/vpn_openvpn_client.php
+++ b/usr/local/www/vpn_openvpn_client.php
@@ -88,7 +88,8 @@ if($_GET['act']=="edit"){
$pconfig['proxy_addr'] = $a_client[$id]['proxy_addr'];
$pconfig['proxy_port'] = $a_client[$id]['proxy_port'];
$pconfig['description'] = $a_client[$id]['description'];
-
+ $pconfig['custom_options'] = $a_client[$id]['custom_options'];
+
if ($pconfig['mode'] != "p2p_shared_key") {
$pconfig['caref'] = $a_client[$id]['caref'];
$pconfig['certref'] = $a_client[$id]['certref'];
@@ -204,6 +205,7 @@ if ($_POST) {
$client['proxy_port'] = $pconfig['proxy_port'];
$client['description'] = $pconfig['description'];
$client['mode'] = $pconfig['mode'];
+ $client['custom_options'] = $pconfig['custom_options'];
if ($tls_mode) {
$client['caref'] = $pconfig['caref'];
@@ -665,6 +667,26 @@ function autotls_change() {
</td>
</tr>
<tr>
+ <td colspan="2" class="list" height="12"></td>
+ </tr>
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">Advanced configuration</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Advanced</td>
+ <td width="78%" class="vtable">
+ <table border="0" cellpadding="2" cellspacing="0">
+ <tr>
+ <td>
+ <textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br/>
+ Paste any additional options you would like to pass through to the OpenVPN server here seperated by a semicolon<br/>
+ EXAMPLE: push "route 10.0.0.0 255.255.255.0";
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
<input name="save" type="submit" class="formbtn" value="Save">
OpenPOWER on IntegriCloud