~ubuntu-branches/ubuntu/saucy/openvpn/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/debian_nogroup_for_sample_files.patch/sample/sample-config-files/client.conf

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-05-24 17:42:45 UTC
  • mfrom: (1.1.19) (10.2.22 sid)
  • Revision ID: package-import@ubuntu.com-20130524174245-g9y6wlforycufqy5
Tags: 2.3.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/openvpn.init.d:
    + Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    + Show per-VPN result messages.
    + Add "--script-security 2" by default for backwards compatabliity.

Show diffs side-by-side

added added

removed removed

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