add-vps-wireguard-server
This commit is contained in:
parent
5521c14abb
commit
103936aa47
|
@ -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" ];
|
||||
# }
|
||||
];
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue