Ticket #1068: VPN-client.ovpn

File VPN-client.ovpn, 3.6 KB (added by decibel83, 3 years ago)

OpenVPN Client configuration file

Line 
1
2
3##############################################
4# Sample client-side OpenVPN 2.0 config file #
5# for connecting to multi-client server.     #
6#                                            #
7# This configuration can be used by multiple #
8# clients, however each client should have   #
9# its own cert and key files.                #
10#                                            #
11# On Windows, you might want to rename this  #
12# file so it has a .ovpn extension           #
13##############################################
14
15# Specify that we are a client and that we
16# will be pulling certain config file directives
17# from the server.
18client
19
20# Use the same setting as you are using on
21# the server.
22# On most systems, the VPN will not function
23# unless you partially or fully disable
24# the firewall for the TUN/TAP interface.
25dev tap
26
27# Windows needs the TAP-Win32 adapter name
28# from the Network Connections panel
29# if you have more than one.  On XP SP2,
30# you may need to disable the firewall
31# for the TAP adapter.
32
33# Are we connecting to a TCP or
34# UDP server?  Use the same setting as
35# on the server.
36proto udp
37
38# The hostname/IP and port of the server.
39# You can have multiple remote entries
40# to load balance between the servers.
41remote  123.123.123.123 1194
42
43# Allow remote peer to change its IP address and/or port number
44float
45
46# Choose a random host from the remote
47# list for load-balancing.  Otherwise
48# try hosts in the order specified.
49remote-random
50
51# Keep trying indefinitely to resolve the
52# host name of the OpenVPN server.  Very useful
53# on machines which are not permanently connected
54# to the internet such as laptops.
55resolv-retry infinite
56
57# Most clients don't need to bind to
58# a specific local port number.
59nobind
60
61
62
63
64# Try to preserve some state across restarts.
65persist-key
66persist-tun
67
68# Write the PID file for compatibility with Ubuntu init.d script
69
70# If you are connecting through an
71# HTTP proxy to reach the actual OpenVPN
72# server, put the proxy server/IP and
73# port number here.  See the man page
74# if your proxy server requires
75# authentication.
76;http-proxy-retry # retry on connection failures
77;http-proxy [proxy server] [proxy port #]
78
79# Wireless networks often produce a lot
80# of duplicate packets.  Set this flag
81# to silence duplicate packet warnings.
82;mute-replay-warnings
83
84# SSL/TLS parms.
85# See the server config file for more
86# description.  It's best to use
87# a separate .crt/.key file pair
88# for each client.  A single ca
89# file can be used for all clients.
90ca   "cacert.pem"
91cert "5D53897DA9CF927E.pem"
92key  "john.doe.pem"
93
94# Verify server certificate by common name
95verify-x509-name vpn-VPN name
96
97
98# Verify server certificate by checking
99# that the certicate has the nsCertType
100# field set to "server".  This is an
101# important precaution to protect against
102# a potential attack discussed here:
103#  http://openvpn.net/howto.html#mitm
104#
105# To use this feature, you will need to generate
106# your server certificates with the nsCertType
107# field set to "server".  The build-key-server
108# script in the easy-rsa folder will do this.
109;ns-cert-type server
110
111# If a tls-auth key is used on the server
112# then every client must also have the key.
113;tls-auth ta.key 1
114
115# Select a cryptographic cipher.
116# If the cipher option is used on the server
117# then you must also specify it here.
118;cipher x
119
120# Enable compression on the VPN link.
121# Don't enable this unless it is also
122# enabled in the server config file.
123comp-lzo
124
125# Set log file verbosity.
126verb 3
127
128# Explicitly notify disconnections
129explicit-exit-notify 3
130
131# Silence repeating messages
132;mute 20