summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-04-04 00:06:36 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-04-04 00:06:36 +0000
commitfe32492ec7097531ef8fd18a1d081c67c483016a (patch)
tree1092922edf0d03dbd603915aa6cb2d9c0868a2b9 /etc/inc/openvpn.inc
parent505a15cb07a945a6410026b6873ce800b73e90b2 (diff)
downloadpfsense-fe32492ec7097531ef8fd18a1d081c67c483016a.zip
pfsense-fe32492ec7097531ef8fd18a1d081c67c483016a.tar.gz
OpenVPN: my fault... now its correct... the server pushes the commands...
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 01b13df..a1d29b7 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -393,6 +393,7 @@ EOD;
if (!empty($settings['tls'])) $openvpn_conf .= "tls-auth {$g['varetc_path']}/openvpn_server{$id}.tls 0\n";
if (!empty($settings['maxclients'])) $openvpn_conf .= "max-clients {$settings['maxclients']}\n";
+ if (!empty($settings['gwredir'])) $openvpn_conf .= "push \"redirect-gateway\"\n";
}
else { // $mode == client
@@ -464,8 +465,6 @@ EOD;
if ($settings['passtos']) $openvpn_conf .= "passtos\n";
- if ($settings['gwredir']) $openvpn_conf .= "push \"redirect-gateway\"\n";
-
if ($settings['dynamic_ip']) {
$openvpn_conf .= "persist-remote-ip\n";
$openvpn_conf .= "float\n";
OpenPOWER on IntegriCloud