aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server
diff options
context:
space:
mode:
authorJesper Hess Nielsen <jesper@graffen.dk>2020-03-14 17:50:06 +0100
committerJesper Hess Nielsen <jesper@graffen.dk>2020-03-14 17:50:06 +0100
commit7201f53cb26dba04d63b215aaecdffc566aa0f75 (patch)
treec8af02843b9a8399e7c36a857da5f9f3818ba670 /roles/space_server
parent5e5723267e195487684feff0857cedfe4ecb11b0 (diff)
downloadlabitat-ansible-7201f53cb26dba04d63b215aaecdffc566aa0f75.tar.gz
labitat-ansible-7201f53cb26dba04d63b215aaecdffc566aa0f75.tar.xz
labitat-ansible-7201f53cb26dba04d63b215aaecdffc566aa0f75.zip
space_server: bird: add ipv4 BGP session for graffen
Diffstat (limited to 'roles/space_server')
-rw-r--r--roles/space_server/files/bird.conf17
1 files changed, 16 insertions, 1 deletions
diff --git a/roles/space_server/files/bird.conf b/roles/space_server/files/bird.conf
index 417328d..a733e05 100644
--- a/roles/space_server/files/bird.conf
+++ b/roles/space_server/files/bird.conf
@@ -46,6 +46,10 @@ define asbjorn_prefixes_v6 = [
2a10:2a80:1ab::/48
];
+define graffen_prefixes_v4 = [
+ 44.145.128.0/24
+];
+
define graffen_prefixes_v6 = [
2001:678:15c::/48
];
@@ -237,6 +241,17 @@ protocol bgp asbjorn_ipv6 from bgp_customer {
}
# BGP customer: graffen
+protocol bgp graffen_ipv4 from bgp_customer {
+ local 185.38.175.65 as local_asn;
+ neighbor 185.38.175.78 as graffen_asn;
+ ipv4 {
+ import limit 10 action block;
+ receive limit 20 action disable;
+ import keep filtered on;
+ import filter { customer_import(graffen_asn, graffen_prefixes_v4); };
+ export filter { customer_export_and_default(); };
+ };
+}
protocol bgp graffen_ipv6 from bgp_customer {
local 2a01:4262:1ab:20::1 as local_asn;
@@ -246,6 +261,6 @@ protocol bgp graffen_ipv6 from bgp_customer {
receive limit 20 action disable;
import keep filtered on;
import filter { customer_import(graffen_asn, graffen_prefixes_v6); };
- export filter { customer_export_dfz(); };
+ export filter { customer_export_and_default(); };
};
}