diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-04-11 20:15:14 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-04-11 20:15:14 +0000 |
commit | de5824aac558b238a56494ad1e69a44f610a2178 (patch) | |
tree | 29d1fdab7685ac9cd0354a9b463efed9c0f76a27 /etc/inc/openvpn.inc | |
parent | bd1e0268ba88e8b928150e23c88aff56408b9c47 (diff) | |
download | pfsense-de5824aac558b238a56494ad1e69a44f610a2178.zip pfsense-de5824aac558b238a56494ad1e69a44f610a2178.tar.gz |
Fix some typos.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 7a731e6..53b4ce8 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -213,7 +213,7 @@ if ($mode != "server") { $items[] = array( 'field' => 'dh_param.dhs', 'string' => 'DH PARAMETERS', 'name' => 'DH parameters'); - $items[] = array( 'field' => 'crlcrl', + $items[] = array( 'field' => 'crl.crl', 'string' => 'X509 CRL', 'name' => 'CRL'); } @@ -300,6 +300,8 @@ function openvpn_reconfigure($mode, $id) { $proto = ($settings['protocol'] == 'UDP' ? 'udp' : "tcp-{$mode}"); $cipher = $settings['crypto']; $openvpn_conf = "dev openvpn{$id}\n"; + $openvpn_conf .= "dev-type tun\n"; + $openvpn_conf .= "dev-node /dev/tun{$id}\n"; $openvpn_conf .= <<<EOD writepid $pidfile #user nobody @@ -451,7 +453,7 @@ EOD; $base_file = $g['varetc_path'] . "/openvpn/certificates/"; $keys = array(); if ($settings['auth_method'] == 'shared_key') - $keys[] = array('field' => 'shared_key', 'ext' => 'secret', 'directive' => 'secret'); + $keys[] = array('field' => 'shared.key', 'ext' => 'secret', 'directive' => 'secret'); else { $keys[] = array('field' => 'ca.crt', 'directive' => 'ca'); $keys[] = array('field' => "{$mode}.crt", 'directive' => 'cert'); @@ -599,7 +601,7 @@ function openvpn_restart($mode, $id) { if ($settings['disable']) return; $configfile = $g['varetc_path'] . "/openvpn_{$mode}{$id}.conf"; - mwexec_bg("nohup openvpn --config $configfile --dev-type tun --dev-node /dev/tun{$id}"); + mwexec_bg("nohup openvpn --config $configfile");// --dev-type tun --dev-node /dev/tun{$id}"); touch("{$g['tmp_path']}/filter_dirty"); } |