~ubuntu-branches/ubuntu/hardy/openvpn/hardy-proposed

« back to all changes in this revision

Viewing changes to sample-config-files/tls-office.conf

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2004-06-10 15:59:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040610155939-dcmtiuvcoqnwek62
Tags: upstream-1.6.0
ImportĀ upstreamĀ versionĀ 1.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Sample OpenVPN configuration file for
 
3
# office using SSL/TLS mode and RSA certificates/keys.
 
4
#
 
5
# '#' or ';' may be used to delimit comments.
 
6
 
 
7
# Use a dynamic tun device.
 
8
# For Linux 2.2 or non-Linux OSes,
 
9
# you may want to use an explicit
 
10
# unit number such as "tun1".
 
11
# OpenVPN also supports virtual
 
12
# ethernet "tap" devices.
 
13
dev tun
 
14
 
 
15
# 10.1.0.1 is our local VPN endpoint (office).
 
16
# 10.1.0.2 is our remote VPN endpoint (home).
 
17
ifconfig 10.1.0.1 10.1.0.2
 
18
 
 
19
# Our up script will establish routes
 
20
# once the VPN is alive.
 
21
up ./office.up
 
22
 
 
23
# In SSL/TLS key exchange, Office will
 
24
# assume server role and Home
 
25
# will assume client role.
 
26
tls-server
 
27
 
 
28
# Diffie-Hellman Parameters (tls-server only)
 
29
dh dh1024.pem
 
30
 
 
31
# Certificate Authority file
 
32
ca my-ca.crt
 
33
 
 
34
# Our certificate/public key
 
35
cert office.crt
 
36
 
 
37
# Our private key
 
38
key office.key
 
39
 
 
40
# OpenVPN uses UDP port 5000 by default.
 
41
# Each OpenVPN tunnel must use
 
42
# a different port number.
 
43
# lport or rport can be used
 
44
# to denote different ports
 
45
# for local and remote.
 
46
; port 5000
 
47
 
 
48
# Downgrade UID and GID to
 
49
# "nobody" after initialization
 
50
# for extra security.
 
51
; user nobody
 
52
; group nobody
 
53
 
 
54
# If you built OpenVPN with
 
55
# LZO compression, uncomment
 
56
# out the following line.
 
57
; comp-lzo
 
58
 
 
59
# Send a UDP ping to remote once
 
60
# every 15 seconds to keep
 
61
# stateful firewall connection
 
62
# alive.  Uncomment this
 
63
# out if you are using a stateful
 
64
# firewall.
 
65
; ping 15
 
66
 
 
67
# Uncomment this section for a more reliable detection when a system
 
68
# loses its connection.  For example, dial-ups or laptops that
 
69
# travel to other locations.
 
70
; ping 15
 
71
; ping-restart 45
 
72
; ping-timer-rem
 
73
; persist-tun
 
74
; persist-key
 
75
 
 
76
# Verbosity level.
 
77
# 0 -- quiet except for fatal errors.
 
78
# 1 -- mostly quiet, but display non-fatal network errors.
 
79
# 3 -- medium output, good for normal operation.
 
80
# 9 -- verbose, good for troubleshooting
 
81
verb 3