1
Fork 0

Fix wireguard config

This commit is contained in:
Jake Howard 2020-03-05 17:58:31 +00:00
parent 8106974c0f
commit 53b0d2f901
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -58,7 +58,7 @@ ListenPort = 51820 # The port for wireguard to listen on (51820 is the standard
# Specify 1 "Peer" block for each connecting device # Specify 1 "Peer" block for each connecting device
[Peer] [Peer]
PublicKey = <client publickey> # The clients public key PublicKey = <client publickey> # The clients public key
AllowedIPs = 10.1.10.0/24 # The IP and mask the client should be assigned AllowedIPs = 10.1.10.2/32 # The IP and mask the client should be assigned
``` ```
Yes, that's really it! This isn't just a simple config, Wireguard just has a super simple configuration! Yes, that's really it! This isn't just a simple config, Wireguard just has a super simple configuration!
@ -73,7 +73,7 @@ PrivateKey = <client privatekey> # The clients private key
[Peer] [Peer]
PublicKey = <servers publickey> # The servers public key PublicKey = <servers publickey> # The servers public key
Endpoint = <servers ip>:51820 # The IP (or hostname) of the server, along with the port wireguard is listening on Endpoint = <servers ip>:51820 # The IP (or hostname) of the server, along with the port wireguard is listening on
AllowedIPs = 10.1.10.2/32 # The IPs and masks the client should route through the tunnel AllowedIPs = 10.1.10.2/24 # The IPs and masks the client should route through the tunnel
PersistentKeepalive = 25 # Ensure connections remain active, especially useful over NAT PersistentKeepalive = 25 # Ensure connections remain active, especially useful over NAT
``` ```