Use seperate preshared keys for each peer

This commit is contained in:
sonny 2021-12-28 12:28:55 +01:00
parent 29a6d82b1d
commit 603718458d
5 changed files with 22 additions and 6 deletions

View file

@ -12,7 +12,7 @@ PrivateKeyFile={{ vpn_server_key_path }}
{% for peer in vpn_peers %}
[WireGuardPeer]
PublicKey={{ peer.public_key }}
PresharedKeyFile={{ vpn_preshared_path }}
PresharedKeyFile={{ peer.preshared_key_path }}
AllowedIPs={{ peer.ip }}/32
{% if not loop.last %}