homelab/roles/wireguard/templates/wg0.conf.j2
2024-09-29 18:04:34 +05:00

10 lines
402 B
Django/Jinja

[Interface]
PrivateKey = {{ private_key.content | b64decode }}
Address = 10.110.0.1/24
ListenPort = 51840
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens18 -j MASQUERADE
[Peer]
PublicKey = awAVP/tkl0Z9PKEMTABjIXhblWSGHhIvYjBFp3C7YUk=
AllowedIPs = 10.110.0.2/32