also run rackserv wireguard on port 1234
This commit is contained in:
parent
fd1be044b0
commit
d9b2f62abc
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue