Set up hydra VPN

This commit is contained in:
Tim Schubert 2021-01-02 17:42:11 +01:00
parent 5b5c0c174b
commit 1bcfcb26b8
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 32 additions and 0 deletions

View file

@ -86,4 +86,19 @@ in
size = 4096;
}
];
networking.wireguard.interfaces."hydra" = {
ips = [ "fcde:ad::2/64" ];
listenPort = 51235;
privateKeyFile = "/var/lib/wireguard/hydra";
peers = [
{
publicKey = "CTKwL6+SJIqKXr1DIHejMDgjoxlWPaT78Pz3+JqcNlw=";
allowedIPs = [ "fcde:ad::1/128" ];
persistentKeepalive = 25;
}
];
};
}