From 7ca9b6dc8c670e014a00b4dc5ee75fa25713465e Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 14 Apr 2024 17:52:35 -0500 Subject: [PATCH] wireguard: support 'Table' and 'PersistentKeepalive' --- roles/wireguard/templates/wg-multi.conf.j2 | 9 +++++++++ 1 file changed, 9 insertions(+) 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