[bird] Filter exported routes to avoid announcing a full view
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
ddb2850adc
commit
6a66ccd8ca
|
@ -17,6 +17,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 212424
|
as: 212424
|
||||||
address: 138.195.159.249
|
address: 138.195.159.249
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local:
|
local:
|
||||||
|
@ -25,6 +27,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
ipv6:
|
ipv6:
|
||||||
id: 185.230.79.253
|
id: 185.230.79.253
|
||||||
binds:
|
binds:
|
||||||
|
@ -40,3 +44,5 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 2a0c:700::/32+
|
||||||
|
|
|
@ -14,6 +14,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 8218
|
as: 8218
|
||||||
address: 158.255.113.72
|
address: 158.255.113.72
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
ipv6:
|
ipv6:
|
||||||
id: 185.230.79.62
|
id: 185.230.79.62
|
||||||
binds:
|
binds:
|
||||||
|
@ -28,3 +30,5 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 8218
|
as: 8218
|
||||||
address: 2001:1b48:2:103::bb:1
|
address: 2001:1b48:2:103::bb:1
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 2a0c:700::/32+
|
||||||
|
|
|
@ -17,6 +17,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 212424
|
as: 212424
|
||||||
address: 138.195.159.249
|
address: 138.195.159.249
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local:
|
local:
|
||||||
|
@ -25,6 +27,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
ipv6:
|
ipv6:
|
||||||
id: 185.230.79.253
|
id: 185.230.79.253
|
||||||
binds:
|
binds:
|
||||||
|
@ -40,3 +44,5 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 2a0c:700::/32+
|
||||||
|
|
|
@ -17,6 +17,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 212424
|
as: 212424
|
||||||
address: 138.195.159.249
|
address: 138.195.159.249
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local:
|
local:
|
||||||
|
@ -25,6 +27,8 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 185.230.76.0/22+
|
||||||
ipv6:
|
ipv6:
|
||||||
id: 185.230.79.253
|
id: 185.230.79.253
|
||||||
binds:
|
binds:
|
||||||
|
@ -40,3 +44,5 @@ loc_bird:
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
allow_export_prefixes:
|
||||||
|
- 2a0c:700::/32+
|
||||||
|
|
|
@ -51,6 +51,9 @@ protocol bgp {{ bgp.name }} {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
|
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
|
||||||
import all;
|
import all;
|
||||||
export all;
|
export filter {
|
||||||
|
if ( net ~ [ {{ bgp.allow_export_prefixes|join(', ') }} ] ) then accept;
|
||||||
|
reject;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -50,6 +50,9 @@ protocol bgp {{ bgp.name }} {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
|
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
|
||||||
import all;
|
import all;
|
||||||
export all;
|
export filter {
|
||||||
|
if ( net ~ [ {{ bgp.allow_export_prefixes|join(', ') }} ] ) then accept;
|
||||||
|
reject;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue