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

@ -81,4 +81,21 @@ in
size = 32768;
}
];
networking.wireguard.interfaces."hydra" = {
ips = [ "fcde:ad::1/64" ];
listenPort = 51235;
privateKeyFile = "/var/lib/wireguard/hydra";
peers = [
{
publicKey = "KzL+PKlv4LktIqqTqC9Esw8dkSZN2qSn/vq76UHbOlY=";
allowedIPs = [ "fcde:ad::2/128" ];
endpoint = "surgat.dadada.li:51235";
persistentKeepalive = 25;
}
];
};
}

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;
}
];
};
}