Create new pvl client and reference in main.yml.

master
jowj 4 years ago
parent bf8cc090ad
commit b9592b1697

@ -39,8 +39,15 @@
- clients
- client_matrix
- name: Create .conf file in /etc/wireguard/.
- name: Create ling8.conf file in /etc/wireguard/.
template: src=ling8.conf dest=/etc/wireguard/ owner=root mode=0600
tags:
- clients
- client_ling8
- name: Create pvl.conf file in /etc/wireguard/.
template: src=pvl.conf dest=/etc/wireguard/ owner=root mode=0600
tags:
- clients
- client_pvl

@ -0,0 +1,9 @@
[Interface]
PrivateKey = {{ wireguard_clients[1]['privkey'] }}
Address = {{ wireguard_vpn_network | ipsubnet(32, wireguard_clients[1]['offset']) }}
DNS = 1.1.1.1
[Peer]
PublicKey = {{ wireguard_server_pubkey }}
Endpoint = vpn.awful.club:51820
AllowedIPs = 0.0.0.0/0
Loading…
Cancel
Save