dotfiles/roles/system/wg-admin/templates/wg-admin.conf
Matej Focko c83836b900
feat(wg-admin): add playbooks for wg-admin clients
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-10-01 17:02:49 +02:00

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