add-vps-wireguard-server

This commit is contained in:
Leon Vita 2022-08-25 01:44:31 +01:00
parent 5521c14abb
commit 103936aa47
1 changed files with 6 additions and 11 deletions

View File

@ -85,21 +85,16 @@ in
# Note: The private key can also be included inline via the privateKey option,
# but this makes the private key world-readable; thus, using privateKeyFile is
# recommended.
privateKeyFile = "will add later";
privateKeyFile = "/etc/wireguard/privatekey";
peers = [
# List of allowed peers.
{ # Feel free to give a meaning full name
# Public key of the peer (not a file path).
publicKey = "{client public key}";
# List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.
# -----------------leon-Mac-------------------------.
{
publicKey = "okZuIQ90J49IJ3s+/dZyLthvo4rR2kclmTL54Ykglio=";
allowedIPs = [ "10.10.11.0/24" ];
}
#{ # John Doe
# publicKey = "{john doe's public key}";
# allowedIPs = [ "10.100.0.3/32" ];
# }
];
];
};
};