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 = {
|
wireguard.interfaces.wg0 = {
|
||||||
ips = [ "10.0.0.1/24" ];
|
ips = [ "10.0.0.1/24" ];
|
||||||
listenPort = wireguardPort;
|
listenPort = wireguardPort;
|
||||||
|
|
||||||
privateKeyFile = config.sops.secrets.wireguard.path;
|
privateKeyFile = config.sops.secrets.wireguard.path;
|
||||||
|
|
||||||
peers = [
|
peers = [
|
||||||
|
@@ -32,12 +32,11 @@ in
|
|||||||
"10.0.0.2/24"
|
"10.0.0.2/24"
|
||||||
"${jupiterPublicIPv4}/32"
|
"${jupiterPublicIPv4}/32"
|
||||||
];
|
];
|
||||||
listenPort = wireguardPort;
|
|
||||||
privateKeyFile = config.sops.secrets.wireguard.path;
|
privateKeyFile = config.sops.secrets.wireguard.path;
|
||||||
|
|
||||||
table = "wireguard";
|
table = "wireguard";
|
||||||
|
|
||||||
postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ];
|
postSetup = [ "${ip} rule add from ${jupiterPublicIPv4} table ${table}" ];
|
||||||
|
|
||||||
postShutdown = [ "${ip} rule del from ${jupiterPublicIPv4} table ${table}" ];
|
postShutdown = [ "${ip} rule del from ${jupiterPublicIPv4} table ${table}" ];
|
||||||
|
|
||||||
peers = [
|
peers = [
|
||||||
|
Reference in New Issue
Block a user