From 9096125ab4dc479d3ed0401dd576192c5a14cea9 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Sun, 8 Nov 2020 14:58:33 -0800 Subject: [PATCH] block redistributing statics into kernel --- templates/global.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/global.tmpl b/templates/global.tmpl index 8adcce4b..e96debd5 100644 --- a/templates/global.tmpl +++ b/templates/global.tmpl @@ -45,7 +45,7 @@ protocol direct { ipv4; ipv6; } protocol kernel { scan time 10; {{ if .OriginSet4 -}} - ipv4 { export all; }; + ipv4 { export where (source != RTS_STATIC); }; {{- else }} ipv4 { export none; }; {{ end }} @@ -54,7 +54,7 @@ protocol kernel { protocol kernel { scan time 10; {{ if .OriginSet6 -}} - ipv6 { export all; }; + ipv6 { export where (source != RTS_STATIC); }; {{- else }} ipv6 { export none; }; {{ end }}