-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserver.conf.example
65 lines (45 loc) · 1.03 KB
/
server.conf.example
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
port 1194
proto tcp
dev tun
ca ca.crt
cert gb2-server.crt
key gb2-server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir ccd
## Subnets:
# Admins
route 10.8.1.0 255.255.255.0
# Users
route 10.8.2.0 255.255.255.0
# Devs
route 10.8.3.0 255.255.255.0
# Guests
route 10.8.4.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.1.1"
push "dhcp-option DOMAIN example.local"
keepalive 10 120
key-direction 0
tls-auth ta.key 0
# Disable the key renegotiation timer.
reneg-sec 0
cipher AES-256-CBC
comp-lzo
max-clients 15
;non-Windows systems.
user nobody
group nogroup
#persist-key
persist-tun
status openvpn-status.log
#log /var/log/openvpn.log
log-append /var/log/openvpn.log
verb 3
;mute 20
crl-verify /etc/openvpn/crl.pem
#LDAP Plugin
plugin /usr/local/lib/openvpn-auth-ldap.so /etc/openvpn/auth-ldap
#Google Authenticator Plugin
plugin /usr/lib/openvpn/openvpn-otp.so "password_is_cr=1 otp_secrets=/etc/openvpn/google-authenticator/otp-secrets"