Skip to content
Snippets Groups Projects
Verified Commit 6a66ccd8 authored by ynerant's avatar ynerant
Browse files

[bird] Filter exported routes to avoid announcing a full view


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent ddb2850a
No related branches found
No related tags found
1 merge request!286[bird] Add configuration for ViaRézo
......@@ -17,6 +17,8 @@ loc_bird:
remote:
as: 212424
address: 138.195.159.249
allow_export_prefixes:
- 185.230.76.0/22+
- name: aurore
allow_local_as: 1
local:
......@@ -25,6 +27,8 @@ loc_bird:
remote:
as: 43619
address: 185.230.79.254
allow_export_prefixes:
- 185.230.76.0/22+
ipv6:
id: 185.230.79.253
binds:
......@@ -40,3 +44,5 @@ loc_bird:
remote:
as: 43619
address: 2a0c:700:28::2
allow_export_prefixes:
- 2a0c:700::/32+
......@@ -14,6 +14,8 @@ loc_bird:
remote:
as: 8218
address: 158.255.113.72
allow_export_prefixes:
- 185.230.76.0/22+
ipv6:
id: 185.230.79.62
binds:
......@@ -28,3 +30,5 @@ loc_bird:
remote:
as: 8218
address: 2001:1b48:2:103::bb:1
allow_export_prefixes:
- 2a0c:700::/32+
......@@ -17,6 +17,8 @@ loc_bird:
remote:
as: 212424
address: 138.195.159.249
allow_export_prefixes:
- 185.230.76.0/22+
- name: aurore
allow_local_as: 1
local:
......@@ -25,6 +27,8 @@ loc_bird:
remote:
as: 43619
address: 185.230.79.254
allow_export_prefixes:
- 185.230.76.0/22+
ipv6:
id: 185.230.79.253
binds:
......@@ -40,3 +44,5 @@ loc_bird:
remote:
as: 43619
address: 2a0c:700:28::2
allow_export_prefixes:
- 2a0c:700::/32+
......@@ -17,6 +17,8 @@ loc_bird:
remote:
as: 212424
address: 138.195.159.249
allow_export_prefixes:
- 185.230.76.0/22+
- name: aurore
allow_local_as: 1
local:
......@@ -25,6 +27,8 @@ loc_bird:
remote:
as: 43619
address: 185.230.79.254
allow_export_prefixes:
- 185.230.76.0/22+
ipv6:
id: 185.230.79.253
binds:
......@@ -40,3 +44,5 @@ loc_bird:
remote:
as: 43619
address: 2a0c:700:28::2
allow_export_prefixes:
- 2a0c:700::/32+
......@@ -51,6 +51,9 @@ protocol bgp {{ bgp.name }} {
{% endif %}
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
import all;
export all;
export filter {
if ( net ~ [ {{ bgp.allow_export_prefixes|join(', ') }} ] ) then accept;
reject;
};
}
{% endfor %}
......@@ -50,6 +50,9 @@ protocol bgp {{ bgp.name }} {
{% endif %}
neighbor {{ bgp.remote.address }} as {{ bgp.remote.as }};
import all;
export all;
export filter {
if ( net ~ [ {{ bgp.allow_export_prefixes|join(', ') }} ] ) then accept;
reject;
};
}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment