Add transmission route configuration
This commit is contained in:
parent
58b8d145e6
commit
8920ba56f3
5 changed files with 36 additions and 4 deletions
|
|
@ -7,3 +7,13 @@ Name={{ vpn_media.interface }}
|
|||
Address={{ vpn_media.ip }}/{{ vpn_media.subnet }}
|
||||
DNS={{ vpn_media.dns }}
|
||||
Domains={{ vpn_media.domains | join(' ') }}
|
||||
|
||||
{% for peer in vpn_media.peers %}
|
||||
{% for ip in peer.allowed_ips %}
|
||||
{% if ip.create_route %}
|
||||
[Route]
|
||||
Destination = {{ ip.address }}
|
||||
Scope = link
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue