From 520f150134f8532bbf4781eed1b9464837096416 Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Sun, 6 Jun 2021 12:51:24 +0000 Subject: [PATCH] bgpwtf: add q3k's anycast subnet Change-Id: I66d449c94b27b741e71da047bb1901b8fba6eb80 --- bgpwtf/machines/edge01.waw.bgp.wtf.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bgpwtf/machines/edge01.waw.bgp.wtf.nix b/bgpwtf/machines/edge01.waw.bgp.wtf.nix index cf61bd91..b03606d8 100644 --- a/bgpwtf/machines/edge01.waw.bgp.wtf.nix +++ b/bgpwtf/machines/edge01.waw.bgp.wtf.nix @@ -172,7 +172,7 @@ in rec { ''; hscloud.routing.originate = { # WAW prefixes, exposed into internet BGP table. - v4.waw = { table = "internet"; address = "185.236.240.0"; prefixLength = 23; }; + v4.waw = { table = "internet"; address = "185.236.240.0"; prefixLength = 24; }; v6.waw = { table = "internet"; address = "2a0d:eb00::"; prefixLength = 32; }; # Default gateway via us, exposed into aggregated table. @@ -325,6 +325,19 @@ in rec { reject; ''; }; + "waw_q3k" = { + description = "AGGREGATE CUSTOMER q3k"; + table = "internet"; + local = "185.236.240.64"; + asn = 204880; + neighbors = [ + { address = "185.236.240.65"; asn = 208521; } + ]; + filterIn = '' + if net ~ [ 185.236.241.0/24 ] then accept; + reject; + ''; + }; # backup LTE link to edge01.fra "fra_edge01" = { description = "IBGP edge01.fra";