bird/filters/ebgp.conf
2020-04-20 04:42:25 +02:00

37 lines
546 B
Text

filter ebgp_import_v4 {
reject;
}
filter ebgp_import_v6
bool rej;
{
rej = false;
if is_rpki_invalid_v6() then
rej = true;
if net.len > 48 then {
filter_reason(filtered_import_prefix_too_long);
rej = true;
}
if bgp_path.len > 64 then {
filter_reason(filtered_import_as_path_too_long);
rej = true;
}
# We delay the final decission until all communities are added
if rej then reject; else accept;
}
filter ebgp_export_v4 {
reject;
}
filter ebgp_export_v6
prefix set mynets;
{
if is_mine_ripe() then accept;
reject;
}