summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-04-03 23:22:47 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-04-03 23:22:47 +0000
commit505a15cb07a945a6410026b6873ce800b73e90b2 (patch)
tree411f00dd7d2158fd7ff33d42da480a2269f37ee6
parent0202f39219753889efc42f67653ae582ae77bddd (diff)
downloadpfsense-505a15cb07a945a6410026b6873ce800b73e90b2.zip
pfsense-505a15cb07a945a6410026b6873ce800b73e90b2.tar.gz
OpenVPN: redirect-gateway added [for CSC]
-rw-r--r--etc/inc/openvpn.inc2
-rw-r--r--usr/local/pkg/openvpn_csc.xml7
2 files changed, 7 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 5ad45f9..01b13df 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -552,7 +552,7 @@ function openvpn_resync_csc($id) {
if (!empty($settings['dhcp_nbttype']) && $settings['dhcp_nbttype'] !=0) $conf .= "push \"dhcp-option NBT {$settings['dhcp_nbttype']}\"\n";
if (!empty($settings['dhcp_nbtscope'])) $conf .= "push \"dhcp-option NBS {$settings['dhcp_nbtscope']}\"\n";
if ($settings['dhcp_nbtdisable']) $conf .= "push \"dhcp-option DISABLE-NBT\"\n";
-
+ if ($settings['gwredir']) $conf .= "push \"redirect-gateway\"\n";
if (!empty($settings['custom_options'])) {
$options = explode(';', $settings['custom_options']);
diff --git a/usr/local/pkg/openvpn_csc.xml b/usr/local/pkg/openvpn_csc.xml
index 8d20f91..70739ce 100644
--- a/usr/local/pkg/openvpn_csc.xml
+++ b/usr/local/pkg/openvpn_csc.xml
@@ -143,7 +143,12 @@
<description>If this option is set, Netbios-over-TCP/IP will be disabled.</description>
<type>checkbox</type>
</field>
-
+ <field>
+ <fieldname>gwredir</fieldname>
+ <fielddescr>Redirect Gateway</fielddescr>
+ <description>Redirect ALL traffic through the OpenVPN server.</description>
+ <type>checkbox</type>
+ </field>
<field>
<fieldname>custom_options</fieldname>
<fielddescr>Custom options</fielddescr>
OpenPOWER on IntegriCloud