blob: d1dd213987250bdaa4f85facc36d89d036533996 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[Match]
Name={{ item.key }}
[Network]
{% for addr in item.value.addresses %}
Address={{ addr }}
{% endfor %}
{% if 'ip_masq' in item.value and item.value.ip_masq %}
IPMasquerade=ipv4
{% endif %}
{% if 'ip_snat' in item.value %}
IPForward=ipv4
{% endif %}
{% if 'default_gateway' in item.value %}
[Route]
Destination=0.0.0.0/1
Gateway={{ item.value.default_gateway.inner }}
[Route]
Destination=128.0.0.0/1
Gateway={{ item.value.default_gateway.inner }}
{% endif %}
|