Allow multiple client tunnels via OpenVPN

Ticket #1265

Ok: fernando lemos
This commit is contained in:
Scott Ullrich 2007-03-08 17:59:45 +00:00
parent 8452103901
commit d8576be536

View File

@ -183,6 +183,8 @@ function openvpn_reconfigure($mode, $id) {
$settings = $config['installedpackages']["openvpn$mode"]['config'][$id];
if ($settings['disable']) return;
$lport = 1194 + $id;
// Set the keys up
// Note that the keys' extension is also the directive that goes to the config file
$base_file = $g['varetc_path'] . "/openvpn_{$mode}{$id}.";
@ -216,6 +218,7 @@ daemon
keepalive 10 60
ping-timer-rem
persist-tun
lport $lport
persist-key
dev tun
proto $proto