Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

# Sample OpenVPN 2.0 config file for multi-client server.

port 1194

proto udp
dev tun

ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem

topology subnet
client-to-client
float

# Private subnet
push "route 10.8.0.0 255.255.255.0"

# Virtual network address and mask
server 10.8.0.0 255.255.255.0

# Use the subdirectory "ccd" for client-specific configuration files (to assign specific IP addresses to specific clients).
client-config-dir /etc/openvpn/ccd
route 10.8.0.0 255.255.255.0

# DNS servers
push "dhcp-option DNS 8.8.8.8"

# For extra security TLS key, if used
# tls-auth /etc/openvpn/server/ta.key 0

# If you enable it here, you must also enable it in the client config file.
# comp-lzo

# The maximum number of concurrently connected clients we want to allow.
max-clients 100

cipher AES-256-CBC

user nobody
group nobody

persist-key
persist-tun

keepalive 30 180

# Log settings
status /etc/openvpn/status.log
log /etc/openvpn/server.log
verb 4

# Notify the client that when the server restarts so it can automatically reconnect.
explicit-exit-notify 1

...