diff --git a/templates/global.tmpl b/templates/global.tmpl index e1e50bbf..e0022e64 100644 --- a/templates/global.tmpl +++ b/templates/global.tmpl @@ -59,7 +59,7 @@ protocol kernel { ipv4 { export filter { {{ if .PrefSrc4 -}} - if source = RTS_STATIC {{ if .OriginSet4 -}}&& source != LOCAL_v4{{ end }} then { + if source = RTS_STATIC {{ if .OriginSet4 -}}&& proto != "static4"{{ end }} then { accept; } else if source = RTS_BGP then { krt_prefsrc = {{ .PrefSrc4 }}; @@ -79,7 +79,7 @@ protocol kernel { ipv6 { export filter { {{ if .PrefSrc6 -}} - if source = RTS_STATIC {{ if .OriginSet6 -}}&& source != LOCAL_v6{{ end }} then { + if source = RTS_STATIC {{ if .OriginSet6 -}}&& proto != "static6"{{ end }} then { accept; } else if source = RTS_BGP then { krt_prefsrc = {{ .PrefSrc6 }};