Add radicale to vpn config & use RouteTable directive
This commit is contained in:
parent
43f662f3ff
commit
6b2c70f5da
8 changed files with 51 additions and 71 deletions
|
|
@ -7,13 +7,14 @@ Description=WireGuard tunnel {{ vpn_media.interface }}
|
|||
|
||||
[WireGuard]
|
||||
PrivateKeyFile={{ vpn_media.private_key_path }}
|
||||
RouteTable=main
|
||||
|
||||
{% for peer in vpn_media.peers %}
|
||||
[WireGuardPeer]
|
||||
PublicKey={{ peer.public_key }}
|
||||
PresharedKeyFile={{ peer.preshared_key_path }}
|
||||
{% for ip in peer.allowed_ips %}
|
||||
AllowedIPs={{ ip.address }}
|
||||
AllowedIPs={{ ip }}
|
||||
{% endfor %}
|
||||
{% if peer.endpoint %}
|
||||
Endpoint={{ peer.endpoint }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue