15 lines
353 B
Plaintext
15 lines
353 B
Plaintext
|
[Interface]
|
||
|
Address = 10.x.x.x/32
|
||
|
PostUp = wg set %i private-key /etc/wireguard/private-key-for-this-vpn
|
||
|
|
||
|
# immediately test connection to the public (bounce) host
|
||
|
PostUp = ping -c1 10.0.0.1
|
||
|
|
||
|
[Peer]
|
||
|
PublicKey =
|
||
|
Endpoint =
|
||
|
AllowedIPs = 10.0.0.0/24
|
||
|
|
||
|
# if this client is behind a NAT and
|
||
|
# other clients should be able to connect
|
||
|
PersistentKeepalive = 25
|