From bfd08b08cf8691defa9c5a1f97be9a3a0960ae42 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 1 Jan 2022 02:39:01 +0000 Subject: [PATCH] ops/nixos: add fastly passive peer --- ops/nixos/lib/bgp.nix | 2 ++ ops/nixos/lib/blade-router.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ops/nixos/lib/bgp.nix b/ops/nixos/lib/bgp.nix index 1e7488f9cf..66af4cdac4 100644 --- a/ops/nixos/lib/bgp.nix +++ b/ops/nixos/lib/bgp.nix @@ -299,6 +299,7 @@ in { bgp_ext_community.add((ro, 205479, 5006)); bgp_ext_community.add((ro, 205479, 5007)); bgp_ext_community.add((ro, 205479, 5008)); + bgp_ext_community.add((ro, 205479, 5009)); # fastly from blade-tuvok accept; }; @@ -327,6 +328,7 @@ in { bgp_ext_community.add((ro, 205479, 5006)); # clouvider from blade-tuvok bgp_ext_community.add((ro, 205479, 5007)); # google from blade-tuvok bgp_ext_community.add((ro, 205479, 5008)); # cloudflare from blade-tuvok + bgp_ext_community.add((ro, 205479, 5009)); # fastly from blade-tuvok accept; }; diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index d43e0f3174..7d0a2dc292 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -287,6 +287,25 @@ in prefix_limit.v6 = 2000; }; }; + peering.fastly = linx // { + remote = { + asn = 54113; + export_community = 5009; + passive = true; # pending + routers = [{ + enabled = cfg.linx.enable; + v4 = "195.66.225.91"; + v6 = "2001:7f8:4::d361:1"; + } { + enabled = cfg.linx.enable; + v4 = "195.66.227.114"; + v6 = "2001:7f8:4::d361:2"; + }]; + bgp_local_pref = 120; + prefix_limit.v4 = 250; + prefix_limit.v6 = 250; + }; + }; export.v4 = [ "92.118.28.0/24" ]; export.v6 = [ "2a09:a441::/32" ]; };