2022-04-25 16:27:57 +02:00
|
|
|
{ config, ... }:
|
2022-09-26 17:50:17 +02:00
|
|
|
let
|
|
|
|
port = 51820;
|
|
|
|
in
|
2022-04-25 16:27:57 +02:00
|
|
|
{
|
|
|
|
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
|
|
|
|
2022-09-26 17:50:17 +02:00
|
|
|
networking.firewall.allowedUDPPorts = [ port ];
|
|
|
|
|
2022-12-30 18:29:13 +01:00
|
|
|
deployment-TLMS.net.wg = {
|
2022-10-02 21:39:37 +02:00
|
|
|
ownEndpoint.host = "endpoint.dvb.solutions";
|
|
|
|
ownEndpoint.port = port;
|
|
|
|
addr4 = "10.13.37.1";
|
|
|
|
prefix4 = 24;
|
2022-05-31 18:56:43 +02:00
|
|
|
privateKeyFile = config.sops.secrets.wg-seckey.path;
|
2022-10-02 21:39:37 +02:00
|
|
|
publicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
|
|
|
|
extraPeers = [
|
2022-04-30 23:41:24 +02:00
|
|
|
{
|
|
|
|
# Tassilo
|
2022-04-25 16:27:57 +02:00
|
|
|
publicKey = "vgo3le9xrFsIbbDZsAhQZpIlX+TuWjfEyUcwkoqUl2Y=";
|
2022-10-02 21:39:37 +02:00
|
|
|
addr4 = "10.13.37.2";
|
2022-04-25 16:27:57 +02:00
|
|
|
}
|
2022-04-30 23:41:24 +02:00
|
|
|
{
|
|
|
|
# oxa
|
2022-04-25 16:27:57 +02:00
|
|
|
publicKey = "QbaQaGqudRXIh03IbBNATfBZfpMLmwihlwLs6W9+P1c=";
|
2022-10-02 21:39:37 +02:00
|
|
|
addr4 = "10.13.37.3";
|
2022-09-25 21:59:17 +02:00
|
|
|
}
|
2022-07-09 17:34:57 +02:00
|
|
|
{
|
|
|
|
# marenz
|
|
|
|
publicKey = "XJddbPj6Zdtn4roi6UWGuR2EA81juMmlaUOuMSLi2FM=";
|
2022-10-02 21:39:37 +02:00
|
|
|
addr4 = "10.13.37.4";
|
2022-07-09 17:34:57 +02:00
|
|
|
}
|
2022-04-25 16:27:57 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|