also run rackserv wireguard on port 1234

This commit is contained in:
xunuwu 2025-10-07 13:10:07 +02:00
parent fd1be044b0
commit d9b2f62abc
Signed by: xun
SSH key fingerprint: SHA256:V3Mr/7NoQDU5RcVlyzUQTuAo3EiCWdg498yk6bfVf7E

View file

@ -31,7 +31,7 @@ in {
peers; peers;
in { in {
allowedTCPPorts = getPortsWithProtocol "tcp"; allowedTCPPorts = getPortsWithProtocol "tcp";
allowedUDPPorts = [51820] ++ getPortsWithProtocol "udp"; allowedUDPPorts = [51820 1234] ++ getPortsWithProtocol "udp";
extraCommands = forPortIps ({ extraCommands = forPortIps ({
IP, IP,
port, port,
@ -72,6 +72,7 @@ in {
}) })
peers; peers;
}; };
"50-wg1" = lib.recursiveUpdate config.systemd.network.netdevs."50-wg0" {wireguardConig.ListenPort = 1234;};
}; };
systemd.network.networks.wg0 = { systemd.network.networks.wg0 = {