fix-wireguard

This commit is contained in:
Leon Vita 2022-09-25 17:11:45 +01:00
parent 96bae6b4e2
commit 4527a038fd
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;
}
];