summaryrefslogtreecommitdiff
path: root/data/templates/openvpn/client.conf.tmpl
blob: 508d8da947556e0583fbd8ab4af2a48945c0c154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
### Autogenerated by interfaces-openvpn.py ###

{% if ip -%}
ifconfig-push {{ ip[0] }} {{ remote_netmask }}
{% endif -%}

{% for route in push_route -%}
push "route {{ route }}"
{% endfor -%}

{% for net in subnet -%}
iroute {{ net }}
{% endfor -%}

{# ipv6_remote is only set when IPv6 server is enabled #}
{% if ipv6_remote -%}
# IPv6

{%- if ipv6_ip %}
ifconfig-ipv6-push {{ ipv6_ip[0] }} {{ ipv6_remote }}
{%- endif %}

{%- for route6 in ipv6_push_route %}
push "route-ipv6 {{ route6 }}"
{%- endfor %}

{%- for net6 in ipv6_subnet %}
iroute {{ net6 }}
{%- endfor %}

{% endif -%}

{% if disable -%}
disable
{% endif -%}