2021-05-16 21:45:43 +02:00
|
|
|
[Interface]
|
|
|
|
Address = 10.x.x.x/32
|
|
|
|
PostUp = wg set %i private-key /etc/wireguard/private-key-for-this-vpn
|
|
|
|
|
2021-06-01 18:15:38 +02:00
|
|
|
# immediately test connection to the public (jump) host
|
2021-05-16 21:45:43 +02:00
|
|
|
PostUp = ping -c1 10.0.0.1
|
|
|
|
|
|
|
|
[Peer]
|
|
|
|
PublicKey =
|
|
|
|
Endpoint =
|
2021-06-01 18:15:38 +02:00
|
|
|
# Set subnet for all IPs that should be routed
|
|
|
|
# through this VPN connection
|
2021-05-16 21:45:43 +02:00
|
|
|
AllowedIPs = 10.0.0.0/24
|
|
|
|
|
|
|
|
# if this client is behind a NAT and
|
|
|
|
# other clients should be able to connect
|
|
|
|
PersistentKeepalive = 25
|