wg & syncthing properly talk through subnet

This commit is contained in:
Danilo Reyes 2025-09-21 11:36:59 -06:00
parent 8262c551e7
commit 97748edc3f
2 changed files with 7 additions and 2 deletions

View File

@ -21,7 +21,8 @@
|> map (srv: srv.port);
ports = enabledPorts ++ [
2049 # idk
8384 # syncthing
8384 # syncthing gui
22000 # syncthing relay
3452 # sonarqube
config.services.gitea.settings.server.SSH_PORT
];
@ -40,7 +41,10 @@
{
publicKey = "dFbiSekBwnZomarcS31o5+w6imHjMPNCipkfc2fZ3GY=";
endpoint = "${config.my.ips.vps}:51820";
allowedIPs = [ "${config.my.ips.wg-vps}/32" ];
allowedIPs = [
"${config.my.ips.wg-vps}/32"
"${config.my.ips.wg-friends}/24" # all friends
];
persistentKeepalive = 25;
}
];

View File

@ -56,6 +56,7 @@ in
wg-vps = "10.77.0.1";
wg-server = "10.77.0.2";
wg-friend1 = "10.8.0.2";
wg-friends = "10.8.0.0";
};
description = "Set of IP's for all my computers.";
};