From 89a1792105d1cb60385f3d9ff6378ecd641d98f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sat, 21 Oct 2023 23:16:35 +0200 Subject: [PATCH] fix: update IPv6 Adresses --- hosts/pie/configuration.nix | 2 +- hosts/pie/dhcpd.nix | 10 +++++----- hosts/pie/networking.nix | 4 ++-- hosts/pie/unbound.nix | 6 +++--- modules/wireguard-client/default.nix | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hosts/pie/configuration.nix b/hosts/pie/configuration.nix index 441aa96..cead313 100644 --- a/hosts/pie/configuration.nix +++ b/hosts/pie/configuration.nix @@ -29,7 +29,7 @@ in { boot.initrd.network.enable = true; boot.initrd.network.ssh = { enable = true; - port = 22; + port = 2222; authorizedKeys = psCfg.user.publicKeys; hostKeys = ["/etc/secrets/initrd/ssh_host_ed25519_key"]; }; diff --git a/hosts/pie/dhcpd.nix b/hosts/pie/dhcpd.nix index 0e5c045..dea1590 100644 --- a/hosts/pie/dhcpd.nix +++ b/hosts/pie/dhcpd.nix @@ -107,7 +107,7 @@ code = 23; space = "dhcp6"; csv-format = true; - data = "2a02:908:5b1:e3c0:3077:4e39:7763:2"; + data = "2a02:908:5b1:e3c0:3077:2::"; } ]; @@ -116,28 +116,28 @@ hostname = "droppie.local"; hw-address = "08:f1:ea:97:0f:0c"; ip-addresses = [ - "2a02:908:5b1:e3c0:3077:4e39:7763:3" + "2a02:908:5b1:e3c0:3077:3::" ]; } { hostname = "pie.local"; hw-address = "dc:a6:32:5c:31:64"; ip-addresses = [ - "2a02:908:5b1:e3c0:3077:4e39:7763:2" + "2a02:908:5b1:e3c0:3077:2::" ]; } { hostname = "chocolatebar.local"; hw-address = "04:d9:f5:fa:35:f5"; ip-addresses = [ - "2a02:908:5b1:e3c0:3077:4e39:7763:5" + "2a02:908:5b1:e3c0:3077:5::" ]; } { hostname = "biolimo.local"; hw-address = "c6:f2:d1:df:ed:a4"; ip-addresses = [ - "2a02:908:5b1:e3c0:3077:4e39:7763:6" + "2a02:908:5b1:e3c0:3077:6::" ]; } ]; diff --git a/hosts/pie/networking.nix b/hosts/pie/networking.nix index 917eb77..ac6c0c1 100644 --- a/hosts/pie/networking.nix +++ b/hosts/pie/networking.nix @@ -21,7 +21,7 @@ networking.interfaces.enabcm6e4ei0.ipv6.addresses = [ { - address = "2a02:908:5b1:e3c0:3077:4e39:7763:b5b7"; + address = "2a02:908:5b1:e3c0:3077:2::"; prefixLength = 128; } ]; @@ -34,7 +34,7 @@ # Caddy reverse proxy for local services like cups services.caddy = { globalConfig = '' - default_bind 192.168.178.2 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7 + default_bind 192.168.178.2 2a02:908:5b1:e3c0:3077:2:: auto_https off ''; }; diff --git a/hosts/pie/unbound.nix b/hosts/pie/unbound.nix index cb2ba48..53f2201 100644 --- a/hosts/pie/unbound.nix +++ b/hosts/pie/unbound.nix @@ -26,16 +26,16 @@ "\"brwb8763f64a364.local. 10800 IN A 192.168.178.4\"" "\"droppie.local. 10800 IN A 192.168.178.3\"" - "\"droppie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:3\"" + "\"droppie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:3::\"" "\"droppie.b12f.io. 10800 IN A 10.0.1.3\"" "\"droppie.b12f.io. 10800 IN AAAA fd00:acab:1312:acab:3::\"" "\"backup.b12f.io. 10800 IN CNAME droppie.b12f.io\"" "\"pie.local. 10800 IN A 192.168.178.2\"" - "\"pie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:2\"" + "\"pie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:2::\"" - "\"vpn.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:2\"" + "\"vpn.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:2::\"" "\"pie.b12f.io. 10800 IN A 10.0.1.2\"" "\"pie.b12f.io. 10800 IN AAAA fd00:acab:1312:acab:2::\"" diff --git a/modules/wireguard-client/default.nix b/modules/wireguard-client/default.nix index 47ab8dd..f9c091b 100644 --- a/modules/wireguard-client/default.nix +++ b/modules/wireguard-client/default.nix @@ -44,7 +44,7 @@ in { "10.0.1.2/32" "fd00:acab:1312:acab:2::/128" ]; - endpoint = "[2a02:908:5b1:e3c0:3077:4e39:7763:2]:51898"; + endpoint = "[2a02:908:5b1:e3c0:3077:2::]:51898"; persistentKeepalive = 25; } ];