dn42-scripts/templates/openvpn.conf.erb

25 lines
489 B
Plaintext

daemon
proto <%= proto %>
mode p2p
dev-type tun
comp-lzo
dev <%= name %>
persist-key
persist-tun
user nobody
group nogroup
<% if remote == "float" -%>
float
port <%= lport %>
<% else -%>
remote <%= remote %>
rport <%= rport %>
lport <%= lport %>
<% end -%>
ifconfig <%= own_v4_tunnel %> <%= v4_tunnel %>
secret /etc/openvpn/<%= name %>.key
script-security 2 execve
up "/etc/openvpn/scripts/ipv6.sh fd70:96c9:ef25::fe:6/124 <%= name %>"