2015-07-26 20:34:46 +00:00
|
|
|
mode server
|
|
|
|
tls-server
|
|
|
|
proto {{proto}}
|
|
|
|
port {{port}}
|
2016-03-27 20:38:14 +00:00
|
|
|
dev tap
|
2015-07-26 20:34:46 +00:00
|
|
|
local {{local}}
|
|
|
|
key {{key_path}}
|
|
|
|
cert {{certificate_path}}
|
|
|
|
ca {{authority_path}}
|
2016-03-27 20:38:14 +00:00
|
|
|
crl-verify {{revocations_path}}
|
2015-07-27 15:49:50 +00:00
|
|
|
dh {{dhparam_path}}
|
2015-07-26 20:34:46 +00:00
|
|
|
comp-lzo
|
|
|
|
user nobody
|
|
|
|
group nogroup
|
2016-03-27 20:38:14 +00:00
|
|
|
persist-tun
|
|
|
|
persist-key
|
2015-07-26 20:34:46 +00:00
|
|
|
ifconfig-pool-persist /tmp/openvpn-leases.txt
|
|
|
|
ifconfig {{subnet_first}} {{subnet.netmask}}
|
|
|
|
server-bridge {{subnet_first}} {{subnet.netmask}} {{subnet_second}} {{subnet_last}}
|
2015-08-13 08:11:08 +00:00
|
|
|
{% for subnet in route %}
|
|
|
|
push "route {{subnet}}"
|
|
|
|
{% endfor %}
|