Skip to content

Instantly share code, notes, and snippets.

@teaforthecat
Created July 27, 2011 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teaforthecat/1108512 to your computer and use it in GitHub Desktop.
Save teaforthecat/1108512 to your computer and use it in GitHub Desktop.
mode server
tls-server
local xxx.xxx.xxx.xxx ## ip/hostname of server
port 1194 ## default openvpn port
proto tcp-server
dev tun
persist-key
persist-tun
#certificates and encryption
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
tls-auth ta.key 0 # This file is secret
cipher BF-CBC # Blowfish (default)
comp-lzo
#DHCP Informatio
push "dhcp-option DNS xxx.xxx.xxx.xxx"
push "dhcp-option DOMAIN something.org"
max-clients 10 ## set this to the max number of clients that should be connected at a time
#log and security
user nobody
group nogroup
keepalive 10 120
verb 3
status openvpn-status.log
log openvpn.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment