OpenVPN: redirect-gateway added

This commit is contained in:
Martin Fuchs 2008-04-03 20:46:05 +00:00
parent 0bcee88054
commit cb36037003
2 changed files with 8 additions and 0 deletions

View File

@ -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";

View File

@ -205,6 +205,12 @@
<description>Checking this will set the TOS field of the tunnel packet to what the payload's TOS is.</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>