wg & syncthing properly talk through subnet
This commit is contained in:
parent
8262c551e7
commit
97748edc3f
@ -21,7 +21,8 @@
|
|||||||
|> map (srv: srv.port);
|
|> map (srv: srv.port);
|
||||||
ports = enabledPorts ++ [
|
ports = enabledPorts ++ [
|
||||||
2049 # idk
|
2049 # idk
|
||||||
8384 # syncthing
|
8384 # syncthing gui
|
||||||
|
22000 # syncthing relay
|
||||||
3452 # sonarqube
|
3452 # sonarqube
|
||||||
config.services.gitea.settings.server.SSH_PORT
|
config.services.gitea.settings.server.SSH_PORT
|
||||||
];
|
];
|
||||||
@ -40,7 +41,10 @@
|
|||||||
{
|
{
|
||||||
publicKey = "dFbiSekBwnZomarcS31o5+w6imHjMPNCipkfc2fZ3GY=";
|
publicKey = "dFbiSekBwnZomarcS31o5+w6imHjMPNCipkfc2fZ3GY=";
|
||||||
endpoint = "${config.my.ips.vps}:51820";
|
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;
|
persistentKeepalive = 25;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@ -56,6 +56,7 @@ in
|
|||||||
wg-vps = "10.77.0.1";
|
wg-vps = "10.77.0.1";
|
||||||
wg-server = "10.77.0.2";
|
wg-server = "10.77.0.2";
|
||||||
wg-friend1 = "10.8.0.2";
|
wg-friend1 = "10.8.0.2";
|
||||||
|
wg-friends = "10.8.0.0";
|
||||||
};
|
};
|
||||||
description = "Set of IP's for all my computers.";
|
description = "Set of IP's for all my computers.";
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user