Probably works

This commit is contained in:
nick committed 2026-10-16 17:27:45 -07:00
1 parent d36e7a484a
commit b31faa5935
10 files changed
+222 -31

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
{{ ansible_managed | comment }}
# Relay tunnel. This box forwards nothing; see the sysctl and nftables
# tasks in wg-relay.yml.
[Interface]
Address = {{ wg_address }}
ListenPort = {{ wg_listen_port }}
MTU = {{ wg_mtu }}
PrivateKey = {{ wg_relay_effective_private_key }}
{% for peer in wg_peers %}
# {{ peer.name }}
[Peer]
PublicKey = {{ peer.public_key }}
AllowedIPs = {{ peer.allowed_ips }}
{% if peer.endpoint is defined and peer.endpoint %}
Endpoint = {{ peer.endpoint }}
{% endif %}
{% if peer.preshared_key is defined and peer.preshared_key %}
PresharedKey = {{ peer.preshared_key }}
{% endif %}
PersistentKeepalive = {{ peer.keepalive | default(25) }}
{% endfor %}