diff options
-rw-r--r-- | machines/dragon.nix | 3 | ||||
-rw-r--r-- | modules/router.nix | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix index 568629c..987596b 100644 --- a/machines/dragon.nix +++ b/machines/dragon.nix @@ -88,8 +88,7 @@ in { networking.firewall.enable = false; networking.interfaces.router-vport.useDHCP = true; networking.interfaces.wg-vpn-vport = { - useDHCP = false; - ipv6.addresses = [{address = "${vpnPrefix}::d"; prefixLength = 128;}]; + useDHCP = true; ipv6.routes = [{address = "${vpnPrefix}::"; prefixLength = 64; via = "${vpnPrefix}::2"; }]; }; networking.resolvconf.useLocalResolver = false; diff --git a/modules/router.nix b/modules/router.nix index 5018375..2a26f6a 100644 --- a/modules/router.nix +++ b/modules/router.nix @@ -82,7 +82,7 @@ let ipv4.routes = [{address = "10.10.255.0"; prefixLength = 24;}]; }; networking.interfaces.wg-vpnlan-vport = { - ipv6.addresses = [{address = "${vpnPrefix}::2"; prefixLength = 128; }]; + ipv6.addresses = [{address = "2001:470:8e2e:1001::1"; prefixLength = 64; }]; }; networking.interfaces.vpnlan-vport = { ipv4.addresses = [{address = "172.20.30.1"; prefixLength = 24;}]; @@ -167,6 +167,8 @@ let dhcp-range=tag:vpnlan-vport,::2,::1000,constructor:vpnlan-vport,ra-only,5m dhcp-host=id:00:04:33:32:31:37:37:31:58:4d:32:35:31:37:30:30:4a:44,tag:vpnlan-vport,[::2] dhcp-host=id:vpn,tag:vpnlan-vport,172.20.30.2 + + dhcp-range=tag:wg-vpnlan-vport,::2,::1000,constructor:wg-vpnlan-vport,ra-only,5m ''; }; |