I just leased a dedicated server to run OpenVPN on ubuntu. I normally do it with Gentoo but because I didnt need to run mikrotik on this server I decided to go with plain jane ubuntu. I have 3 instances of OpenVPN running (443 TCP, 1194 UDP, 9201 UDP) Its stable until someone connects. Then 1 of the 3 instances gets knocked off. Hardware is Intel Dual-Core G530 and 2gb of RAM. Is a Dual core not enough to have a few people connected to OpenVPN with 3 ports open?
This is the basic config. Except I change the ports, dev, server IP and mgmt port.
port 1194 #- port
proto udp #- protocol
dev 1194udp
dev-type tun
duplicate-cn
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
plugin /etc/openvpn/radiusplugin.so /etc/openvpn/1194udp.cnf
client-cert-not-required
username-as-common-name
topology subnet
server 10.8.1.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
verb 5
mute 10
reneg-sec 0
management localhost 51194
daemon
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher CAMELLIA-256-CBC
tls-cipher TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA:TLS-DHE-RSA-WITH-AES-256-CBC-SHA