diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-05 21:32:53 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-05 21:33:35 +0000 |
commit | 691fbf14b966d584a4af9ee2195a0eeb002e1855 (patch) | |
tree | b799ef2a140c7b1af5fca772ea0bcf14940b3097 /usr | |
parent | c1613ade8b27b5709c71ff558de4553cdfbced81 (diff) | |
download | pfsense-691fbf14b966d584a4af9ee2195a0eeb002e1855.zip pfsense-691fbf14b966d584a4af9ee2195a0eeb002e1855.tar.gz |
Feature #248. Ticket #248. Merge patch from Antonio No to add tap device type to OpenVPN.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index c7c6516..f1f48fd 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -92,7 +92,9 @@ if($_GET['act']=="edit"){ $pconfig['proxy_port'] = $a_client[$id]['proxy_port']; $pconfig['description'] = $a_client[$id]['description']; $pconfig['custom_options'] = $a_client[$id]['custom_options']; - + $pconfig['ns_cert_type'] = $a_client[$id]['ns_cert_type']; + $pconfig['dev_mode'] = $a_client[$id]['dev_mode']; + if ($pconfig['mode'] != "p2p_shared_key") { $pconfig['caref'] = $a_client[$id]['caref']; $pconfig['certref'] = $a_client[$id]['certref']; @@ -197,6 +199,7 @@ if ($_POST) { $client['disable'] = $pconfig['disable']; $client['protocol'] = $pconfig['protocol']; + $client['dev_mode'] = $pconfig['dev_mode']; list($client['interface'], $client['ipaddr']) = explode ("|",$pconfig['interface']); $client['local_port'] = $pconfig['local_port']; $client['server_addr'] = $pconfig['server_addr']; @@ -383,6 +386,21 @@ function autotls_change() { </select> </td> </tr> + <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Device mode");?></td> + <td width="78%" class="vtable"> + <select name='dev_mode' class="formselect"> + <?php + foreach ($openvpn_dev_mode as $mode): + $selected = ""; + if ($pconfig['dev_mode'] == $mode) + $selected = "selected"; + ?> + <option value="<?=$mode;?>" <?=$selected;?>><?=$mode;?></option> + <?php endforeach; ?> + </select> + </td> + </tr> <tr> <td width="22%" valign="top" class="vncellreq">Interface</td> <td width="78%" class="vtable"> |