From e7e0531b41bfe73421a16235ed6bc180d23ac7e5 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Tue, 9 Jun 2020 08:33:48 -0300 Subject: [PATCH] add redirect-gateway option support --- openvpn_setup.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openvpn_setup.tmpl b/openvpn_setup.tmpl index 65fb861..7431894 100644 --- a/openvpn_setup.tmpl +++ b/openvpn_setup.tmpl @@ -121,6 +121,10 @@ persist-key verb {{ getv("/openvpn/verb") }} {% endif %} +# redirect-gateway def1 +{% if exists("/openvpn/redirect/gateway") %} +redirect-gateway {{ getv("/openvpn/redirect/gateway") }} +{% endif %} EOF {% if exists("/openvpn/ta") %}