63
The Windows client/server configuration file options are:
Options Description
#description: This is a comment describing the configuration.
Commentlinesstartwitha‘#’andareignoredbyOpenVPN.
Client
server
Specifywhetherthiswillbeaclientorservercongurationle.Intheservercongurationle,
denetheIPaddresspoolandnetmask.Forexample,server10.100.10.0255.255.255.0
proto udp
proto tcp
SettheprotocoltoUDPorTCP.Theclientandservermustusethesamesettings.
mssx<max.size> Mssxsetsthemaximumsizeofthepacket.ThisisonlyusefulforUDPifproblemsoccur.
verb<level> Setlogleverbositylevel.Logverbositylevelcanbesetfrom0(minimum)to15(maximum).
Forexample,
0 = silent except for fatal errors
3=mediumoutput,goodforgeneralusage
5 = helps with debugging connection problems
9=extremelyverbose,excellentfortroubleshooting
dev tun
dev tap
Select‘devtun’tocreatearoutedIPtunnelor‘devtap’tocreateanEthernettunnel.The
client and server must use the same settings.
remote<host> Thehostname/IPofOpenVPNserverwhenoperatingasaclient.EntereithertheDNS
hostname or the static IP address of the server.
Port TheUDP/TCPportoftheserver.
Keepalive KeepaliveusespingtokeeptheOpenVPNsessionalive.'Keepalive10120'pingsevery10
seconds and assumes the remote peer is down if no ping has been received over a 120
second time period.
http-proxy<proxyserver>
<proxyport#>
Ifaproxyisrequiredtoaccesstheserver,entertheproxyserverDNSnameorIPandport
number.
ca<lename> Enter the CA certificate file name and location. The same CA certificate file can be used by the
server and all clients.
Note:Ensureeach‘\’inthedirectorypathisreplacedwith‘\\’.Forexample,c:\openvpnkeys\
ca.crtwillbecomec:\\openvpnkeys\\ca.crt
cert<lename> Entertheclient’sorservers’scerticatelenameandlocation.Eachclientshouldhaveits
owncerticateandkeyles.Note:Ensureeach‘\’inthedirectorypathisreplacedwith‘\\’.
key<lename> Enterthelenameandlocationoftheclient’sorserver’skey.Eachclientshouldhaveitsown
certificate and key files.
Note:Ensureeach‘\’inthedirectorypathisreplacedwith‘\\’.
dh<lename> This is used by the server only.
EnterthepathtothekeywiththeDife-Hellmanparameters.
Nobind ‘Nobind’isusedwhenclientsdonotneedtobindtoalocaladdressorspeciclocalport
number. This is the case in most client configurations.
persist-key This option prevents the reloading of keys across restarts.
persist-tun ThisoptionpreventsthecloseandreopenofTUN/TAPdevicesacrossrestarts.
cipherBF-CBCBlowsh
(default)
cipherAES-128-CBCAES
cipherDES-EDE3-CBC
Triple-DES
Select a cryptographic cipher. The client and server must use the same settings.
comp-lzo EnablecompressionontheOpenVPNlink.Thismustbeenabledonboththeclientandthe
server.
syslog Bydefault,logsarelocatedinsyslogor,ifrunningasaserviceonWindow,in\ProgramFiles\
OpenVPN\logdirectory.
Chapter 4: Serial Port, Device and User Configuration