Ticket #684: openvpn.conf

File openvpn.conf, 910 bytes (added by petrerodan, 5 years ago)

openvpn configuration (ips and ports are made up)

Line 
1server 10.199.0.0 255.255.0.0
2port 7077
3proto udp
4dev tun0
5persist-key
6persist-tun
7
8sndbuf 131072
9rcvbuf 131072
10txqueuelen 1000
11fast-io
12
13cipher AES-256-CBC
14auth md5
15comp-lzo yes
16tun-mtu 1500
17fragment 1300
18mssfix
19
20ca "/etc/openvpn/ca.crt"
21cert "/etc/openvpn/server.crt"
22key "/etc/openvpn/server.key"
23dh "/etc/openvpn/dh2048.pem"
24
25push "redirect-gateway def1"
26push "dhcp-option DNS 8.8.8.8"
27push "comp-lzo yes"
28
29max-clients 500
30single-session
31script-security 2
32ping 10
33ping-exit 60
34ping-timer-rem
35
36tmp-dir "/var/tmp/"
37client-config-dir /var/openvpn/ccd_tun0
38status /var/openvpn/openvpn-udp.status
39
40# http://www.nongnu.org/radiusplugin/radiusplugin_v2.1.tar.gz
41plugin /usr/lib/openvpn/radiusplugin.so /etc/openvpn/radiusplugin-udp.cnf
42
43management 127.0.0.1 2222
44user openvpn
45group openvpn
46
47username-as-common-name
48client-connect "/opt/bin/updown_c openvpn_up"
49client-disconnect "/opt/bin/updown_c openvpn_down"
50
51