Ticket #1272: openvpn-server.conf

File openvpn-server.conf, 1.3 KB (added by kia0, 2 years ago)

Server config

Line 
1auth SHA1
2ca "/etc/openvpn/keys/ca.crt"
3cert "/etc/openvpn/keys/SOLVO-VPN.crt"
4cipher BF-CBC        # Blowfish - for old clients
5client-config-dir "/etc/openvpn/ccd"
6client-connect "/etc/openvpn/scripts/client-connect.sh"
7client-disconnect "/etc/openvpn/scripts/client-disconnect.sh"
8client-to-client
9comp-lzo adaptive
10crl-verify /etc/openvpn/keys/crl.pem
11dev tun0
12dh "/etc/openvpn/keys/dh2048.pem"
13ifconfig 172.16.87.1 255.255.255.0
14ifconfig-pool 172.16.87.32 172.16.87.255
15ifconfig-pool-persist "/var/run/openvpn/ipp.txt"
16keepalive 10 60
17key "/etc/openvpn/keys/SOLVO-VPN.key"
18local 193.xxx.xxx.xxx
19log-append "/var/log/openvpn/openvpn.log"
20max-clients 252
21mlock
22mode server
23mute 10
24mute-replay-warnings
25ncp-ciphers AES-256-GCM:AES-256-CBC:AES-128-GCM:AES-128-CBC
26persist-key
27persist-tun
28port 1194
29proto udp
30push "dhcp-option DNS 172.16.xxx.xxx"
31push "dhcp-option DNS 172.16.xxx.xxx"
32push "dhcp-option WINS 172.16.xxx.xxx"
33push register-dns
34push "route 172.16.xxx.xxx 255.255.xxx.xxx vpn_gateway"
35push "route-gateway 172.16.87.1"
36push "topology subnet"
37route 172.16.87.0 255.255.255.0
38route-gateway 172.16.87.1
39status "/var/log/openvpn/openvpn-status.log" 10
40tls-auth "/etc/openvpn/keys/ta.key" 0
41tls-server
42tls-timeout 2
43topology subnet
44verb 4
45writepid /var/run/openvpn/server.pid