From cb360370039fc3012bb82fca00ea331f35c55a47 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Thu, 3 Apr 2008 20:46:05 +0000 Subject: [PATCH] OpenVPN: redirect-gateway added --- etc/inc/openvpn.inc | 2 ++ usr/local/pkg/openvpn_cli.xml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 001bc204cb..18842a6d6f 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 129b86f394..d751ac43ab 100644 --- a/usr/local/pkg/openvpn_cli.xml +++ b/usr/local/pkg/openvpn_cli.xml @@ -205,6 +205,12 @@ Checking this will set the TOS field of the tunnel packet to what the payload's TOS is. checkbox + + gwredir + Redirect Gateway + Redirect ALL traffic through the OpenVPN server. + checkbox + custom_options Custom options