I have OpenVPN successfully running on a VPS server which I'm connecting to from my laptop whenever I need it. The performance, once I connect, is really really poor. It's like 10% of my performance without being connected to the VPN - by performance I mean internet speed.
So I read on the internet that tcp is not good and I should switch to udp on the server and client for a better experience. Problem is, I can't make my client-server connection work under udp protocol. TCP is fine, I have a new ip, encryption etc but not UDP.
Here's my server config:
mode server
dev tun
proto udp
port 1194
script-security 3
tls-auth ta.key 0
keepalive 10 120
client-cert-not-required
username-as-common-name
auth-user-pass-verify "/usr/bin/python /etc/openvpn/auth.py" via-env
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
tls-auth /etc/openvpn/easy-rsa/2.0/keys/ta.key 0
user nobody
group nogroup
server 10.8.0.0 255.255.192.0
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
log-append /var/log/openvpn
comp-lzo
And my client config:
dev tun
client
script-security 3
proto udp
remote xxx.xxx.xxx.xxx 1194
nobind
persist-key
persist-tun
ca ca.crt
tls-auth ta.key 1
comp-lzo
verb 0
auth-user-pass /home/manilodisan/Desktop/vpn/auth.txt
if I change the 'proto' directive to udp all starts working. Any ideas?