From 36cda7bab22becd14973c55a7ce83ff1b55b04bb Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 22 Feb 2023 11:29:43 +0800 Subject: [PATCH] hosts/plover: update networking blocks --- hosts/plover/modules/hardware/hetzner-cloud-cx21.nix | 6 +++++- hosts/plover/modules/hardware/networks.nix | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix index 9d703415..7185a1ec 100644 --- a/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix +++ b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix @@ -59,6 +59,7 @@ in # https://discourse.nixos.org/t/nixos-on-hetzner-cloud-servers-ipv6/221/ systemd.network = { enable = true; + wait-online.ignoredInterfaces = [ "lo" ]; # For more information, you can look at Hetzner documentation from # https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/ @@ -73,9 +74,10 @@ in networkConfig = { # IPv6 has to be manually configured. DHCP = "ipv4"; + IPForward = true; LinkLocalAddressing = "ipv6"; - IPForward = true; + IPv6AcceptRA = true; DNS = [ "2a01:4ff:ff00::add:2" @@ -101,6 +103,8 @@ in IPv4.gateway IPv6.gateway ]; + + networkConfig.IPv6AcceptRA = true; }; }; }; diff --git a/hosts/plover/modules/hardware/networks.nix b/hosts/plover/modules/hardware/networks.nix index eae34d4b..c7220358 100644 --- a/hosts/plover/modules/hardware/networks.nix +++ b/hosts/plover/modules/hardware/networks.nix @@ -5,8 +5,9 @@ let inherit (builtins) toString; in rec { - # This is expected to be /64 block (i.e., `fc00:b0de:5685::/64`). - privateIPv6Prefix = "fc00:b0de:5685"; + # This is expected to be /48 block (i.e., `fc00:b0de:5685::/48`). + # The thing is generated using a ULA generator. + privateIPv6Prefix = "fd89:c181:8016"; # These blocks should be used sparingly with how wide these blocks cover. # Plus, they shouldn't be treated as subnets.