Merge pull request 'fix-wireguard' (#66) from leon/nix-config:vps-leon into master

Reviewed-on: #66
This commit is contained in:
astro 2022-09-25 19:31:53 +02:00
commit 1fc5531800
1 changed files with 3 additions and 4 deletions

View File

@ -59,7 +59,7 @@ in
networking.firewall = {
allowedTCPPorts = [ 80 443 22 ];
allowedUDPPorts = [ 51820 ];
allowedUDPPorts = [ 18800 ];
};
#------------------DOCKER----------------------------
@ -73,14 +73,13 @@ in
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.10.11.4/24" ];
listenPort = 51820;
privateKeyFile = "/etc/nixos/wireguard-keys/private-key";
peers = [
{
publicKey = "w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=";
allowedIPs = [ "10.10.11.0" ];
endpoint = "81.201.149.152:18800";
allowedIPs = [ "10.10.11.0/24" ];
endpoint = "45.158.40.162:18800";
persistentKeepalive = 25;
}
];