diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-30 19:31:52 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-30 19:31:52 -0400 |
commit | 2f4f30ee6905515d713fd43ff17fa95bcf2c567f (patch) | |
tree | aeb349350178028e090d01740fd13899b0e8129b /usr/local/www/vpn_openvpn_server.php | |
parent | cc1d20ab75924e8ab0fbce4da24d5f7f3c019798 (diff) | |
download | pfsense-2f4f30ee6905515d713fd43ff17fa95bcf2c567f.zip pfsense-2f4f30ee6905515d713fd43ff17fa95bcf2c567f.tar.gz |
Adding back openvpn advanced option which got lost in the -> 2.0 upgrade shuffle
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r-- | usr/local/www/vpn_openvpn_server.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php index 7979070..d2a7977 100644 --- a/usr/local/www/vpn_openvpn_server.php +++ b/usr/local/www/vpn_openvpn_server.php @@ -85,6 +85,7 @@ if($_GET['act']=="edit"){ $pconfig['interface'] = $a_server[$id]['interface']; $pconfig['local_port'] = $a_server[$id]['local_port']; $pconfig['description'] = $a_server[$id]['description']; + $pconfig['ovpnadvanced'] = $a_server[$id]['ovpnadvanced']; if ($pconfig['mode'] != "p2p_shared_key") { if ($a_server[$id]['tls']) { @@ -259,6 +260,7 @@ if ($_POST) { $server['interface'] = $pconfig['interface']; $server['local_port'] = $pconfig['local_port']; $server['description'] = $pconfig['description']; + $server['ovpnadvanced'] = $pconfig['ovpnadvanced']; if ($tls_mode) { if ($pconfig['tlsauth_enable']) { @@ -1082,6 +1084,28 @@ function netbios_change() { <table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts"> <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">Address Pool</td> + <td width="78%" class="vtable"> + <table border="0" cellpadding="2" cellspacing="0"> + <tr> + <td> + <textarea rows="6" cols="78" name="ovpnadvanced" id="ovpnadvanced"><?=$pconfig['ovpnadvanced'];?></textarea><br/> + Paste any additional options you would like to pass through to the openvpn server here. + </td> + </tr> + </table> + </td> + </tr> + </table> + + <table width="100%" border="0" cellpadding="6" cellspacing="0" id="client_opts"> + <tr> <td width="22%" valign="top"> </td> <td width="78%"> <input name="save" type="submit" class="formbtn" value="Save"> |