From: Michael Tremer Date: Mon, 31 Jul 2017 09:28:33 +0000 (+0200) Subject: vti: Disable policy lookups for VTI devices X-Git-Tag: 009~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1857e3b82df2a837089c27d8f986da2385e86b;p=network.git vti: Disable policy lookups for VTI devices Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.ip-tunnel b/src/functions/functions.ip-tunnel index df59aade..5e6bd8e6 100644 --- a/src/functions/functions.ip-tunnel +++ b/src/functions/functions.ip-tunnel @@ -109,6 +109,13 @@ ip_tunnel_add() { error "Could not create tunnel device ${device}" return ${EXIT_ERROR} fi + + # Disable policy lookups for VTI devices + if [ "${mode}" = "vti" ]; then + sysctl_set "net.ipv4.conf.${device}.disable_policy" "1" + fi + + return ${EXIT_OK} } ip_tunnel_del() {