diff options
author | Martin Fuchs <mfuchs@pfsense.org> | 2008-04-03 20:46:05 +0000 |
---|---|---|
committer | Martin Fuchs <mfuchs@pfsense.org> | 2008-04-03 20:46:05 +0000 |
commit | cb360370039fc3012bb82fca00ea331f35c55a47 (patch) | |
tree | 1912eea7193cd7fe5cca6899032a1f7974db702c | |
parent | 0bcee88054d0878cb4c0ceb442566a76d862790f (diff) | |
download | pfsense-cb360370039fc3012bb82fca00ea331f35c55a47.zip pfsense-cb360370039fc3012bb82fca00ea331f35c55a47.tar.gz |
OpenVPN: redirect-gateway added
-rw-r--r-- | etc/inc/openvpn.inc | 2 | ||||
-rw-r--r-- | usr/local/pkg/openvpn_cli.xml | 6 |
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> |