mirror of
https://gitverse.ru/kpa39l/infrastructure.git
synced 2026-09-29 10:05:03 +00:00
first_commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[Interface]
|
||||
PrivateKey = {{ wireguard_private_key }}
|
||||
Address = {{ wireguard_ip }}/24
|
||||
ListenPort = {{ wireguard_port }}
|
||||
|
||||
{% for peer in wireguard_peers %}
|
||||
{% if peer.ip != wireguard_ip %}
|
||||
[Peer]
|
||||
# {{ peer.name }}
|
||||
PublicKey = {{ peer.pubkey }}
|
||||
AllowedIPs = {{ peer.ip }}/32
|
||||
{% if peer.endpoint %}
|
||||
Endpoint = {{ peer.endpoint }}
|
||||
PersistentKeepalive = 25
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user