Refactor nftables, vpn and transmission configuration
This commit is contained in:
parent
465a5d2887
commit
dcbdfdc422
24 changed files with 292 additions and 192 deletions
|
|
@ -1,12 +1,14 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Interface]
|
||||
Address={{ vpn_peers.mobile.ip }}/24
|
||||
Address={{ vpn_peers.mobile.ip }}/{{ vpn_prefix }}
|
||||
DNS={{ vpn_listen_address }}
|
||||
PrivateKey={{ lookup("file", vpn_peers.mobile.private_key_source_path) }}
|
||||
|
||||
[Peer]
|
||||
PublicKey={{ lookup("file", vpn_server_public_key_source_path) }}
|
||||
PresharedKey={{ lookup("file", vpn_peers.mobile.preshared_key_source_path) }}
|
||||
AllowedIPs={{ vpn_listen_address }}/32
|
||||
{% for ip in vpn_peers.mobile.allowed_ips %}
|
||||
AllowedIPs={{ ip }}
|
||||
{% endfor %}
|
||||
Endpoint={{ domain_name }}:{{ vpn_port }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue