Add ROA
This commit is contained in:
parent
07cd688008
commit
ee42d5bfea
|
@ -34,10 +34,19 @@ template pipe iBGP_Pipe {
|
|||
export all;
|
||||
}
|
||||
|
||||
roa table dn42_roa {
|
||||
include "/var/lib/bird/bird_roa_dn42.conf";
|
||||
};
|
||||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP4;
|
||||
import filter {
|
||||
if (roa_check(dn42_roa, net, bgp_path.last) = ROA_INVALID) then {
|
||||
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
||||
reject;
|
||||
}
|
||||
|
||||
# accept every subnet, except our own advertised subnet
|
||||
# filtering is important, because some guys try to advertise routes like 0.0.0$
|
||||
if is_valid_network() && !is_self_net() then {
|
||||
|
|
|
@ -34,10 +34,19 @@ template pipe iBGP_Pipe {
|
|||
export all;
|
||||
}
|
||||
|
||||
roa table dn42_roa6 {
|
||||
include "/var/lib/bird/bird6_roa_dn42.conf";
|
||||
};
|
||||
|
||||
protocol pipe {
|
||||
table master;
|
||||
peer table T_BGP6;
|
||||
import filter {
|
||||
|
||||
if (roa_check(dn42_roa6, net, bgp_path.last) = ROA_INVALID) then {
|
||||
print "[dn42] ROA check failed for ", net, " ASN ", bgp_path.last;
|
||||
reject;
|
||||
}
|
||||
# accept every subnet, except our own advertised subnet
|
||||
# filtering is important, because some guys try to advertise routes like 0.0.0$
|
||||
if is_valid_network() && !is_self_net() then {
|
||||
|
|
Loading…
Reference in a new issue