Clean up jupiter wireguard config
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -21,6 +21,7 @@ in
|
||||
wireguard.interfaces.wg0 = {
|
||||
ips = [ "10.0.0.1/24" ];
|
||||
listenPort = wireguardPort;
|
||||
|
||||
privateKeyFile = config.sops.secrets.wireguard.path;
|
||||
|
||||
peers = [
|
||||
|
@@ -32,12 +32,11 @@ in
|
||||
"10.0.0.2/24"
|
||||
"${jupiterPublicIPv4}/32"
|
||||
];
|
||||
listenPort = wireguardPort;
|
||||
|
||||
privateKeyFile = config.sops.secrets.wireguard.path;
|
||||
|
||||
table = "wireguard";
|
||||
|
||||
postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ];
|
||||
|
||||
postShutdown = [ "${ip} rule del from ${jupiterPublicIPv4} table ${table}" ];
|
||||
|
||||
peers = [
|
||||
|
Reference in New Issue
Block a user