diff options
-rw-r--r-- | roles/space_server/files/bird.conf | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/roles/space_server/files/bird.conf b/roles/space_server/files/bird.conf index e5516d5..f3b0561 100644 --- a/roles/space_server/files/bird.conf +++ b/roles/space_server/files/bird.conf @@ -19,7 +19,8 @@ router id 185.38.175.0; # functions and filters define local_asn = 205235; -define fiberby_asn = 42541; +define fiberby_asn = 42541; +define svenne_asn = 62113; define asbjorn_asn = 207727; define hafnium_asn = 211153; define olivia_asn = 199750; @@ -27,6 +28,16 @@ define rayman_asn = 198186; define flummer_asn = 198275; define dbras_asn = 198886; +define svenne_prefixes_v4 = [ + 45.136.36.0/22{22,24}, + 185.38.24.0/22{22,24}, + 194.31.164.0/22{22,24} +]; + +define svenne_prefixes_v6 = [ + 2a00:fbe0::/29{29,48} +]; + define asbjorn_prefixes_v4 = [ 194.165.35.0/24, 194.165.38.0/24, @@ -274,6 +285,33 @@ protocol bgp asbjorn_ipv6 from bgp_customer { }; } +# BGP customer: svenne +protocol bgp svenne_ipv4 from bgp_customer { + local 185.38.175.97 as local_asn; + neighbor 185.38.175.111 as svenne_asn; + ttl security; + ipv4 { + import limit 50 action block; + receive limit 50 action disable; + import keep filtered on; + import filter { customer_import(svenne_asn, svenne_prefixes_v4); }; + export filter { customer_export_default_only(); }; + }; +} + +protocol bgp svenne_ipv6 from bgp_customer { + local 2a01:4262:1ab:21::1 as local_asn; + neighbor 2a01:4262:1ab:21::111 as svenne_asn; + ttl security; + ipv6 { + import limit 50 action block; + receive limit 50 action disable; + import keep filtered on; + import filter { customer_import(svenne_asn, svenne_prefixes_v6); }; + export filter { customer_export_default_only(); }; + }; +} + # BGP customer: hafnium protocol bgp hafnium_ipv6 from bgp_customer { local 2a01:4262:1ab:20::1 as local_asn; |