From 5e5723267e195487684feff0857cedfe4ecb11b0 Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Wed, 11 Mar 2020 07:09:45 +0100 Subject: space_server: bird: add bgp peering for graffen/AS209616 --- roles/space_server/files/bird.conf | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/roles/space_server/files/bird.conf b/roles/space_server/files/bird.conf index acc191c..417328d 100644 --- a/roles/space_server/files/bird.conf +++ b/roles/space_server/files/bird.conf @@ -21,6 +21,7 @@ router id 185.38.175.0; define local_asn = 205235; define fiberby_asn = 42541; define asbjorn_asn = 207727; +define graffen_asn = 209616; define local_prefixes_v4 = [ 185.38.175.0/24, @@ -31,7 +32,8 @@ define local_prefixes_v4 = [ define local_prefixes_v6 = [ 2a01:4262:1ab::/48, 2a10:2a80:ac::/48, - 2a10:2a80:1ab::/48 + 2a10:2a80:1ab::/48, + 2001:678:15c::/48 ]; define asbjorn_prefixes_v4 = [ @@ -44,6 +46,10 @@ define asbjorn_prefixes_v6 = [ 2a10:2a80:1ab::/48 ]; +define graffen_prefixes_v6 = [ + 2001:678:15c::/48 +]; + # functions and filters function is_default_route() { @@ -229,3 +235,17 @@ protocol bgp asbjorn_ipv6 from bgp_customer { export filter { customer_export_default_only(); }; }; } + +# BGP customer: graffen + +protocol bgp graffen_ipv6 from bgp_customer { + local 2a01:4262:1ab:20::1 as local_asn; + neighbor 2a01:4262:1ab:20::78 as graffen_asn; + ipv6 { + import limit 10 action block; + receive limit 20 action disable; + import keep filtered on; + import filter { customer_import(graffen_asn, graffen_prefixes_v6); }; + export filter { customer_export_dfz(); }; + }; +} -- cgit v1.2.1