diff --git a/plays/vpn/roles/bridge/templates/wg0/wg0.conf.j2 b/plays/vpn/roles/bridge/templates/wg0/wg0.conf.j2 index f20de3d..3acc71c 100644 --- a/plays/vpn/roles/bridge/templates/wg0/wg0.conf.j2 +++ b/plays/vpn/roles/bridge/templates/wg0/wg0.conf.j2 @@ -10,6 +10,7 @@ ListenPort = {{ vpn_bridge_wg0_port }} PublicKey = {{ client.public_key }} PresharedKey = {{ vpn_bridge_wg0_preshared_key }} AllowedIPs = {{ vpn_bridge_wg0_subnet }},{{ client.subnet }} + {% endfor %} {% elif vpn_bridge_role == "client" %} [Peer] @@ -18,4 +19,5 @@ PresharedKey = {{ vpn_bridge_wg0_preshared_key }} Endpoint = {{ vpn_bridge_wg0_server_address }}:{{ vpn_bridge_wg0_port }} AllowedIPs = 0.0.0.0/0 PersistentKeepalive = 15 + {% endif %}