~xenrox/ansible

ref: 1f2402ad2d1a95b6a79883a54cef4931faf87ae6 ansible/roles/wireguard_vpn_server/templates/wg1.netdev.j2 -rw-r--r-- 477 bytes
1f2402adThorben Günther build: Configure coloured output 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[NetDev]
Name=wg1
Kind=wireguard
Description=WireGuard VPN wg1

[WireGuard]
ListenPort=51821
PrivateKey={{ lookup('file', '/home/xenrox/decrypted/wireguard_vpn/xenrox.net.key') }}

{% for client in wireguard_clients %}
[WireGuardPeer]
PublicKey={{ lookup('file', '/home/xenrox/decrypted/wireguard_vpn/' ~ client.name ~ '.pub') }}
PresharedKey={{ lookup('file', '/home/xenrox/decrypted/wireguard_vpn/' ~ client.name ~ '.psk') }}
AllowedIPs={{ client.address }}/32

{% endfor %}