Add radicale to vpn config & use RouteTable directive

This commit is contained in:
Sonny Bakker 2025-04-06 19:30:16 +02:00
parent 43f662f3ff
commit 6b2c70f5da
8 changed files with 51 additions and 71 deletions

View file

@ -7,13 +7,3 @@ Name={{ vpn_default.interface }}
Address={{ vpn_default.ip }}/{{ vpn_default.prefix }}
DNS={{ vpn_default.dns }}
Domains={{ vpn_default.domains | join(' ') }}
{% for peer in vpn_default.peers %}
{% for ip in peer.allowed_ips %}
{% if ip.create_route %}
[Route]
Destination={{ ip.address }}
Scope=link
{% endif %}
{% endfor %}
{% endfor %}