Centralize IPv6 GUA prefix configuration

This commit is contained in:
Vili Sinervä 2025-02-21 12:36:07 +02:00
parent f95617dfa4
commit 89516c5477
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
4 changed files with 181 additions and 172 deletions

View file

@ -1,6 +1,5 @@
{ ... }:
{ config, ... }:
let
gua_pref = "2001:14ba:a090:39";
v4_pref = "192.168.251";
in
{
@ -8,12 +7,12 @@ in
jool = {
enable = true;
siit.default = {
global.pool6 = "${gua_pref}46::/96";
global.pool6 = "${config.custom.gua_pref}46::/96";
# Explicit address mappings
eamt = [
{
"ipv6 prefix" = "${gua_pref}d1:be24:11ff:fe42:dd76/128";
"ipv6 prefix" = "${config.custom.gua_pref}d1:be24:11ff:fe42:dd76/128";
"ipv4 prefix" = "${v4_pref}.1/32";
}
];