summaryrefslogtreecommitdiff
path: root/public/fs/etc/openvpn/hostvpn.conf.in
blob: 38b7380006ad01c5d7044ee685d92549140e38ee (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
36
37
38
39
40
41
42
port         @vpn_port@
proto        udp

dev          @vpn_tunnel@
topology     subnet

cipher       AES-256-CBC

ca           /etc/easy-rsa/pki/ca.crt
cert         /etc/easy-rsa/pki/issued/@hostname@.crt

askpass      /srv/webroot/openvpn/@hostname@.pass
key          /etc/easy-rsa/pki/private/@hostname@.key
dh           /etc/easy-rsa/pki/dh.pem

status       /var/log/openvpn/openvpn-@vpn_type@-status.log
log-append   /var/log/openvpn/openvpn-@vpn_type@.log

server       @vpn_net4@ 255.255.255.0
server-ipv6  @host_ipv6@:@ipv6_subnet@::/66

push         "route-ipv6 2000::/3"
push         "route-ipv6 @host_ipv6@::/64"
push         "route 192.168.0.0 255.255.255.0"

@vpn_route_all@ push         "block-outside-dns"
@vpn_route_all@ push         "redirect-gateway def1"
@vpn_route_all@ push         "dhcp-option DNS @vpn_ipv4@"

duplicate-cn
client-to-client

daemon
auth-nocache

persist-key
persist-tun

verb          3
keepalive     20    60

client-config-dir   ccd