Change vps wireguard port
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -11,11 +11,9 @@ let
|
||||
jupiterPublicIPv4 = "51.89.210.124";
|
||||
in
|
||||
{
|
||||
sops.secrets.wireguard = { };
|
||||
sops.secrets."wireguard/client/vps" = { };
|
||||
|
||||
networking = {
|
||||
firewall.allowedUDPPorts = [ wireguardPort ];
|
||||
|
||||
iproute2 = {
|
||||
enable = true;
|
||||
rttablesExtraConfig = ''
|
||||
@@ -33,7 +31,7 @@ in
|
||||
"${jupiterPublicIPv4}/32"
|
||||
];
|
||||
|
||||
privateKeyFile = config.sops.secrets.wireguard.path;
|
||||
privateKeyFile = config.sops.secrets."wireguard/client/vps".path;
|
||||
|
||||
table = "wireguard";
|
||||
postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ];
|
||||
|
Reference in New Issue
Block a user