Add client-wg0.conf
This commit is contained in:
parent
ed2962fe0a
commit
b96e9f5f25
17
client-wg0.conf
Normal file
17
client-wg0.conf
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[Interface]
|
||||||
|
# Replace with the client's private key
|
||||||
|
PrivateKey = CLIENT_PRIVATE_KEY
|
||||||
|
# Client's VPN IP address
|
||||||
|
Address = 10.0.0.2/24
|
||||||
|
# Set DNS server (optional)
|
||||||
|
DNS = 8.8.8.8
|
||||||
|
|
||||||
|
[Peer]
|
||||||
|
# Server's public key
|
||||||
|
PublicKey = SERVER_PUBLIC_KEY
|
||||||
|
# Server's public IP address and WireGuard port
|
||||||
|
Endpoint = SERVER_PUBLIC_IP:51820
|
||||||
|
# Route all traffic through the VPN
|
||||||
|
AllowedIPs = 0.0.0.0/0
|
||||||
|
# Keep the connection alive (useful if behind NAT)
|
||||||
|
PersistentKeepalive = 25
|
Loading…
Reference in a new issue