2020-12-02 18:11:18 +01:00
|
|
|
[Interface]
|
|
|
|
Address = {{ vpn_network }}.{{item|int + 1}}/32
|
2020-12-02 22:10:02 +01:00
|
|
|
DNS = 9.9.9.9
|
2020-12-27 14:25:20 +01:00
|
|
|
PrivateKey = {{ item.stdout }}
|
2020-12-02 18:11:18 +01:00
|
|
|
|
|
|
|
[Peer]
|
2020-12-27 14:25:20 +01:00
|
|
|
PublicKey = {{ vpn_server_public_key.stdout }}
|
2020-12-02 18:11:18 +01:00
|
|
|
AllowedIPs = 0.0.0.0/0
|
2020-12-02 22:10:02 +01:00
|
|
|
Endpoint = {{ ansible_ssh_host }}:{{ vpn_port }}
|
|
|
|
PersistentKeepalive = 0
|