Add media vpn setup
This commit is contained in:
parent
cf061d3779
commit
7c4dd0d3c2
25 changed files with 257 additions and 66 deletions
|
|
@ -1,13 +1,15 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[NetDev]
|
||||
Name={{ vpn_interface }}
|
||||
Name={{ vpn_default.interface }}
|
||||
Kind=wireguard
|
||||
Description=WireGuard tunnel {{ vpn_interface }}
|
||||
Description=WireGuard tunnel {{ vpn_default.interface }}
|
||||
|
||||
[WireGuard]
|
||||
# PrivateKeyFile option does not seem to work, perhaps a bug?
|
||||
PrivateKey={{ vpn_private_key }}
|
||||
PrivateKey={{ vpn_default.private_key }}
|
||||
|
||||
{% for peer in vpn_peers %}
|
||||
{% for peer in vpn_default.peers %}
|
||||
[WireGuardPeer]
|
||||
PublicKey={{ peer.public_key }}
|
||||
# PresharedKeyFile option does not seem to work, perhaps a bug?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue