diff options
author | Jesper Hess Nielsen <jesper@graffen.dk> | 2020-03-11 07:09:45 +0100 |
---|---|---|
committer | Jesper Hess Nielsen <jesper@graffen.dk> | 2020-03-11 07:13:38 +0100 |
commit | 5e5723267e195487684feff0857cedfe4ecb11b0 (patch) | |
tree | fc4a2fe45666c018ef579bc055ab341655bb707e /roles/space_server/files | |
parent | b0a2abadbfe406e38d40f557c1339cbd41b0203b (diff) | |
download | labitat-ansible-5e5723267e195487684feff0857cedfe4ecb11b0.tar.gz labitat-ansible-5e5723267e195487684feff0857cedfe4ecb11b0.tar.xz labitat-ansible-5e5723267e195487684feff0857cedfe4ecb11b0.zip |
space_server: bird: add bgp peering for graffen/AS209616
Diffstat (limited to 'roles/space_server/files')
-rw-r--r-- | roles/space_server/files/bird.conf | 22 |
1 files changed, 21 insertions, 1 deletions
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(); }; + }; +} |