22 lines
485 B
Text
22 lines
485 B
Text
[Interface]
|
|
# Assign the static IP
|
|
Address = {{ address }}/20
|
|
|
|
# Set the DNS
|
|
DNS = 10.42.0.1, admin
|
|
|
|
# Set the DNS for the connection
|
|
PostUp = {{ dns_command }}
|
|
|
|
# Load the private key
|
|
PostUp = wg set %i private-key /etc/wireguard/private.key
|
|
|
|
# FIXME: Ping the VPN server to initiate the connection
|
|
# PostUp = ping -c3 10.42.0.1
|
|
|
|
# poincare
|
|
[Peer]
|
|
PublicKey = DFvcdIvT4ulnQfRejbzUV/LJqUEYRWlAhtHKM65G92Y=
|
|
AllowedIPs = 10.42.0.0/20
|
|
Endpoint = mfocko.xyz:51820
|
|
PersistentKeepAlive = 20
|