Skip to content

Instantly share code, notes, and snippets.

Last active September 14, 2018 06:16
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
OpenVPN server.conf
# Basic Connection Config
dev tun
proto udp
port 1194
keepalive 10 120
max-clients 5
# Certs
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-auth ta.key 0
# Ciphers and Hardening
reneg-sec 0
remote-cert-tls client
crl-verify crl.pem
tls-version-min 1.2
cipher AES-256-CBC
auth SHA512
# Drop Privs
user nobody
group nobody
# IP pool
topology subnet
ifconfig-pool-persist ipp.txt
client-config-dir ccd
# Misc
# DHCP Push options force all traffic through VPN and sets DNS servers
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS"
push "dhcp-option DNS"
# Logging
log-append /var/log/openvpn.log
verb 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment