5994929
########################################
5994929
# Sample OpenVPN config file for
5994929
# 2.0-style multi-client udp server
5994929
#
5994929
# Adapted from http://openvpn.sourceforge.net/20notes.html
5994929
#
5994929
# tun-style tunnel
5994929
5994929
port 1194
5994929
dev tun
5994929
5994929
# Use "local" to set the source address on multi-homed hosts
5994929
#local [IP address]
5994929
5994929
# TLS parms
5994929
tls-server 
5994929
ca sample-keys/tmp-ca.crt
5994929
cert sample-keys/server.crt
5994929
key sample-keys/server.key
5994929
dh sample-keys/dh1024.pem
5994929
5994929
# Tell OpenVPN to be a multi-client udp server
5994929
mode server
5994929
5994929
# The server's virtual endpoints
5994929
ifconfig 10.8.0.1 10.8.0.2
5994929
5994929
# Pool of /30 subnets to be allocated to clients.
5994929
# When a client connects, an --ifconfig command
5994929
# will be automatically generated and pushed back to
5994929
# the client.
5994929
ifconfig-pool 10.8.0.4 10.8.0.255
5994929
5994929
# Push route to client to bind it to our local
5994929
# virtual endpoint.
5994929
push "route 10.8.0.1 255.255.255.255"
5994929
5994929
# Push any routes the client needs to get in
5994929
# to the local network.
5994929
push "route 192.168.0.0 255.255.255.0"
5994929
347a608
# Push DHCP options to Windows clients.
347a608
push "dhcp-option DOMAIN example.com"
347a608
push "dhcp-option DNS 192.168.0.1"
347a608
push "dhcp-option WINS 192.168.0.1"
347a608
5994929
# Client should attempt reconnection on link
5994929
# failure.
347a608
keepalive 10 60
5994929
5994929
# Delete client instances after some period
5994929
# of inactivity.
5994929
inactive 600
5994929
5994929
# Route the --ifconfig pool range into the
5994929
# OpenVPN server.
5994929
route 10.8.0.0 255.255.255.0
5994929
5994929
# The server doesn't need privileges
5994929
user openvpn
5994929
group openvpn
5994929
347a608
# Keep TUN devices and keys open across restarts.
347a608
persist-tun
347a608
persist-key
347a608
5994929
verb 4