Ticket #926: client.conf

File client.conf, 1.1 KB (added by vmspike, 5 years ago)
Line 
1# OpenVPN 2.4 client config
2
3server-poll-timeout 12
4nobind
5link-mtu 1420
6server-poll-timeout 15
7
8<connection>
9remote SERVER_IP_HERE 443 udp4
10mssfix 0
11</connection>
12
13<connection>
14remote SERVER_IP_HERE 443 tcp4
15</connection>
16
17script-security 2
18# Just shell script with the content to show variables: (set -o posix; set)
19up up.sh
20
21client
22dev tun
23cipher AES-256-GCM
24auth SHA256
25comp-lzo
26resolv-retry infinite
27remote-cert-tls server
28sndbuf 0
29rcvbuf 0
30reneg-sec 0
31verb 3
32
33# For single connection persist-* and user/group options can be uncommented
34# For dual it's better to keep them commented, otherwise openvpn cannot
35# change connection without full restart
36;auth-nocache
37;persist-key
38;persist-tun
39;persist-remote-ip
40
41ignore-unknown-option block-outside-dns dhcp-renew register-dns tap-sleep dhcp-release dhcp-option
42# Windows specific options
43block-outside-dns
44dhcp-renew
45register-dns
46tap-sleep 1
47
48# *nix specific options (Linux/Mac/BSD)
49;user openvpn
50;group openvpn
51nice 5
52
53# Certificates and keys
54<ca>
55...
56</ca>
57<cert>
58...
59</cert>
60<key>
61...
62</key>
63key-direction 1
64<tls-auth>
65...
66</tls-auth>