subnet parameters

This commit is contained in:
Danilo Reyes
2026-02-06 07:16:22 -06:00
parent 788ea5ad26
commit 00a43a5a48
4 changed files with 28 additions and 15 deletions

View File

@@ -78,8 +78,8 @@ in
endpoint = "${config.my.ips.vps}:51820";
allowedIPs = [
"${config.my.ips.wg-vps}/32"
"${config.my.ips.wg-friends}/24" # all friends
"${config.my.ips.wg-gs}/24" # all friends
config.my.subnets.wg-friends
config.my.subnets.wg-guests
];
persistentKeepalive = 25;
}

View File

@@ -8,11 +8,11 @@ let
externalInterface = config.my.interfaces.${config.networking.hostName};
wgInterface = "wg0";
homeServer = config.my.ips.wg-server;
wgFriendsSubnet = "${config.my.ips.wg-friends}/24";
wgGuestsSubnet = "${config.my.ips.wg-gs}/24";
wgServerSubnet = "${config.my.ips.wg-vps}/24";
wgFriendsSubnet = config.my.subnets.wg-friends;
wgGuestsSubnet = config.my.subnets.wg-guests;
wgServerSubnet = config.my.subnets.wg-homelab;
wgFriend1 = config.my.ips.wg-friend1;
wgGuest1 = config.my.ips.wg-g1;
wgGuest1 = config.my.ips.wg-guest1;
giteaSshPort = 22;
giteaSshPortStr = toString giteaSshPort;
sshPort = 3456;