summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/openvpn.inc2
-rw-r--r--usr/local/pkg/openvpn_cli.xml6
2 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 001bc20..18842a6 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -463,6 +463,8 @@ EOD;
if ($settings['use_lzo']) $openvpn_conf .= "comp-lzo\n";
if ($settings['passtos']) $openvpn_conf .= "passtos\n";
+
+ if ($settings['gwredir']) $openvpn_conf .= "redirect-gateway\n";
if ($settings['dynamic_ip']) {
$openvpn_conf .= "persist-remote-ip\n";
diff --git a/usr/local/pkg/openvpn_cli.xml b/usr/local/pkg/openvpn_cli.xml
index 129b86f..d751ac4 100644
--- a/usr/local/pkg/openvpn_cli.xml
+++ b/usr/local/pkg/openvpn_cli.xml
@@ -206,6 +206,12 @@
<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>
<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the client configuration.</description>
OpenPOWER on IntegriCloud