aboutsummaryrefslogtreecommitdiff
path: root/modules/bgp
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-02-12 11:05:57 +0100
committerMax Audron <audron@cocaine.farm>2025-02-12 11:05:57 +0100
commit4052d5117d3a2393ed7cf016abc0fbcc72d9906a (patch)
tree072a947befedd0a48ce23dd102d55490386d97a2 /modules/bgp
parentupdate to nixos 24.11 (diff)
update dns servers
Diffstat (limited to 'modules/bgp')
-rw-r--r--modules/bgp/default.nix110
1 files changed, 54 insertions, 56 deletions
diff --git a/modules/bgp/default.nix b/modules/bgp/default.nix
index 1f33aad..5a726b6 100644
--- a/modules/bgp/default.nix
+++ b/modules/bgp/default.nix
@@ -29,63 +29,61 @@
};
services.frr = {
- bgp = {
- enable = true;
- config = ''
- router bgp 64716
- bgp router-id ${config.deploy.host}
- bgp ebgp-requires-policy
- no bgp default ipv4-unicast
- no bgp network import-check
+ bgpd.enable = true;
+ config = ''
+ router bgp 64716
+ bgp router-id ${config.deploy.host}
+ bgp ebgp-requires-policy
+ no bgp default ipv4-unicast
+ no bgp network import-check
- neighbor V4 peer-group
- neighbor V4 remote-as 64515
- neighbor V4 ebgp-multihop 2
- neighbor 169.254.169.254 peer-group V4
- neighbor 169.254.169.254 password IpXzIJIsJxABeNdi4mPBbt7XD
+ neighbor V4 peer-group
+ neighbor V4 remote-as 64515
+ neighbor V4 ebgp-multihop 2
+ neighbor 169.254.169.254 peer-group V4
+ neighbor 169.254.169.254 password IpXzIJIsJxABeNdi4mPBbt7XD
- neighbor V6 peer-group
- neighbor V6 remote-as 64515
- neighbor V6 ebgp-multihop 2
- neighbor 2001:19f0:ffff::1 peer-group V6
- neighbor 2001:19f0:ffff::1 password IpXzIJIsJxABeNdi4mPBbt7XD
- !
- address-family ipv4 unicast
- network 209.250.238.254/32
- network 217.163.29.14/32
- neighbor V4 activate
- neighbor V4 route-map IMPORT in
- neighbor V4 route-map EXPORT out
- neighbor V6 activate
- neighbor V6 route-map IMPORT in
- neighbor V6 route-map EXPORT out
- exit-address-family
- !
- address-family ipv6 unicast
- network 2a0f:9400:8020::/48
- neighbor V4 activate
- neighbor V4 route-map IMPORT in
- neighbor V4 route-map EXPORT out
- neighbor V6 activate
- neighbor V6 route-map IMPORT in
- neighbor V6 route-map EXPORT out
- exit-address-family
- !
- ip prefix-list internal seq 5 permit 209.250.238.254/32
- ip prefix-list internal seq 10 permit 217.163.29.14/32
- ipv6 prefix-list external seq 5 permit 2a0f:9400:8020::/48
- !
- route-map EXPORT deny 100
- !
- route-map EXPORT permit 2
- match ipv6 address prefix-list external
- !
- route-map EXPORT permit 1
- match ip address prefix-list internal
- !
- route-map IMPORT deny 1
- !
- '';
- };
+ neighbor V6 peer-group
+ neighbor V6 remote-as 64515
+ neighbor V6 ebgp-multihop 2
+ neighbor 2001:19f0:ffff::1 peer-group V6
+ neighbor 2001:19f0:ffff::1 password IpXzIJIsJxABeNdi4mPBbt7XD
+ !
+ address-family ipv4 unicast
+ network 209.250.238.254/32
+ network 217.163.29.14/32
+ neighbor V4 activate
+ neighbor V4 route-map IMPORT in
+ neighbor V4 route-map EXPORT out
+ neighbor V6 activate
+ neighbor V6 route-map IMPORT in
+ neighbor V6 route-map EXPORT out
+ exit-address-family
+ !
+ address-family ipv6 unicast
+ network 2a0f:9400:8020::/48
+ neighbor V4 activate
+ neighbor V4 route-map IMPORT in
+ neighbor V4 route-map EXPORT out
+ neighbor V6 activate
+ neighbor V6 route-map IMPORT in
+ neighbor V6 route-map EXPORT out
+ exit-address-family
+ !
+ ip prefix-list internal seq 5 permit 209.250.238.254/32
+ ip prefix-list internal seq 10 permit 217.163.29.14/32
+ ipv6 prefix-list external seq 5 permit 2a0f:9400:8020::/48
+ !
+ route-map EXPORT deny 100
+ !
+ route-map EXPORT permit 2
+ match ipv6 address prefix-list external
+ !
+ route-map EXPORT permit 1
+ match ip address prefix-list internal
+ !
+ route-map IMPORT deny 1
+ !
+ '';
};
}
nes.git/commit/modules/tlmp/default.nix?id=18d940abf27eab9619e1ba86249d87a1bb5b9bdb&follow=1'>update flaresolverrMax Audron-1/+1 2025-09-07add audron windows wg keyMax Audron-0/+8 2025-09-02switch out vultr dns ipv4 ipMax Audron-1/+5 2025-08-11disable homepage trackersMax Audron-3/+3 2025-08-11add mail serverMax Audron-1/+245 2025-08-05add prometheus alerting rulesMax Audron-38/+144 2025-08-01add homepage dashboardMax Audron-3/+284 2025-08-01disable not used gameserversMax Audron-1/+2 2025-08-01add minecraft prometheus exporterMax Audron-3/+67 2025-08-01more monitoring & scrape config shortcutsMax Audron-68/+63 2025-08-01update garage to 2.0Max Audron-6/+10 2025-07-31fix authentik-ldap port bindingsMax Audron-0/+5 2025-07-31update to nixos 25.05Max Audron-113/+65 2025-07-31add more monitoring exporters and scrapersMax Audron-17/+57 2025-07-30try to run authentik nativelyMax Audron-26/+303 2025-07-30more metricsMax Audron-1/+41 2025-07-30enable firewallsMax Audron-1/+39