Browse Source

template problem

aeth 8 months ago
parent
commit
aa9d08a3d8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      templates/wg0.conf.j2

+ 2 - 2
templates/wg0.conf.j2

@@ -13,6 +13,6 @@ PostUp     = firewall-cmd --zone=public --add-port {{ vpn_server_port }}/udp &&
 PostDown   = firewall-cmd --zone=public --remove-port {{ vpn_server_port }}/udp && firewall-cmd --zone=public --remove-masquerade
 {% for client in clients %}
 [Peer]
-PublicKey = {{ client.client_public_key }}
-AllowedIPs = {{ client.client_vpn_address }}/{{ vpn_netmask }}
+PublicKey = {{ client.pubkey}}
+AllowedIPs = {{ client.ipv4 }}/{{ vpn_netmask }}
 {% endfor %}