Output wireguard client config files
This commit is contained in:
10
ansible/roles/gateway/files/wireguard-client.conf
Normal file
10
ansible/roles/gateway/files/wireguard-client.conf
Normal file
@ -0,0 +1,10 @@
|
||||
[Interface]
|
||||
Address = {{ item.value.ip }}
|
||||
PrivateKey = {{ item.value.private_key }}
|
||||
|
||||
[Peer]
|
||||
PublicKey = {{ wireguard.server.public_key }}
|
||||
Endpoint = {{ wireguard.public_ip }}:{{ wireguard.port }}
|
||||
AllowedIPs = {{ item.value.ip }}/32
|
||||
|
||||
PersistentKeepalive = 25
|
Reference in New Issue
Block a user