Skip to content

Commit

Permalink
only import routes into the kernel if the router originates prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 3, 2020
1 parent ece44de commit 1e5537a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/global.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,20 @@ protocol direct {

protocol kernel {
scan time 10;
{{ if .OriginSet4 -}}
ipv4 { export all; };
{{- else }}
ipv4 { export none; };
{{ end }}
}

protocol kernel {
scan time 10;
{{ if .OriginSet6 -}}
ipv6 { export all; };
{{- else }}
ipv6 { export none; };
{{ end }}
}

# --- Blackholing ---
Expand Down

0 comments on commit 1e5537a

Please sign in to comment.