Linux Server openvpn.conf


########################################
# Sample OpenVPN config file for
# multi-client udp server
#
# tap-style tunnel

port 1194
dev tap

# TLS parms

tls-server 
ca my-openvpn-keys/ca.crt
cert my-openvpn-keys/server.crt
key my-openvpn-keys/server.key
dh my-openvpn-keys/dh1024.pem

# Tell OpenVPN to be a multi-client udp server
mode server

# The server's virtual subnet
ifconfig 10.10.0.1 255.255.255.0

# Pool of IP addresses to be allocated to clients.
# When a client connects, an --ifconfig command
# will be automatically generated and pushed back to
# the client.
ifconfig-pool 10.10.0.4 10.10.0.255

# Push route to client to bind it to our local
# virtual endpoint.
push "route 172.17.119.0 255.255.255.0 10.10.0.1"

# Allow duplicate machine names
duplicate-cn

# Client should attempt reconnection on link
# failure.
ping 10
ping-restart 120
push "ping 10"
push "ping-restart 60"

# The server doesn't need privileges
user nobody
group nobody

verb 4

# Windows Client Settings
# Needed for browse list to cross over tunnel
push "ip-win32 dynamic"
push "dhcp-option WINS 172.17.109.29"
push "dhcp-option NBT 2"