Files
2026-10-18 12:34:19 +04:00

33 lines
705 B
Django/Jinja

port 1195
proto tcp
dev tap0
dev-type tap
server-bridge nogw
client-to-client
keepalive 10 60
cipher AES-256-GCM
auth SHA256
persist-key
persist-tun
status openvpn-tap0-status.log
verb 3
tcp-nodelay
reneg-sec 0
tun-mtu 1500
mssfix 1300
script-security 2
up /etc/openvpn/tap0-up.sh
down /etc/openvpn/tap0-down.sh
<ca>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/ca.crt') }}
</ca>
<cert>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/issued/server.crt') }}
</cert>
<key>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/private/server.key') }}
</key>
<dh>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/dh.pem') }}
</dh>