diff --git a/roles/wireguard/templates/wg-multi.conf.j2 b/roles/wireguard/templates/wg-multi.conf.j2 index f50b02d..9fb666b 100644 --- a/roles/wireguard/templates/wg-multi.conf.j2 +++ b/roles/wireguard/templates/wg-multi.conf.j2 @@ -15,6 +15,9 @@ Address = {{ address }} {% if "listen_port" in i %} ListenPort = {{ i.listen_port }} {% endif %} +{% if "table" in i %} +Table = {{ i.table }} +{% endif %} {% endmacro -%} {%- macro render_peer(p) %} @@ -35,6 +38,12 @@ AllowedIPs = {{ p.allowed_ips }} AllowedIPs = {{ p.allowed_ips | join(', ') }} {% endif %} {% endif %} +{% if "preshared_key" in p %} +PresharedKey = {{ p.preshared_key }} +{% endif %} +{% if "persistent_keepalive" in p %} +PersistentKeepalive = {{ p.persistent_keepalive }} +{% endif %} {% endmacro -%} {% if wireguard_interfaces[_wireguard_interface] and