Skip to content

Commit

Permalink
fix kernel local prefix injection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Mar 6, 2021
1 parent 24b76a4 commit 8c29910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/global.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }};
Expand All @@ -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 }};
Expand Down

0 comments on commit 8c29910

Please sign in to comment.