2020-12-02 18:11:18 +01:00
|
|
|
[Interface]
|
2021-11-22 11:56:24 +01:00
|
|
|
Address = {{ vpn_network }}.{{item|int + 1}}/32
|
|
|
|
DNS = 9.9.9.9
|
|
|
|
PrivateKey = {{ private_key_files.results[item|int].stdout }}
|
|
|
|
MTU = 1500
|
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
|