I have an OpenVPN server running on a burst.net vps with an open-wrt router as the only client. When OpenVPN is enabled, the download speed is very slow. I would love it if you could take a look at my configs and/or offer any advice to fix this. To test my speeds, I've been using a curl script:
curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
I've turned the encryption off, and my speeds are still terribly slow.
speed test of VPS (openVPN server):
root@265122:~# curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 500M 100 500M 0 0 11.1M 0 0:00:44 0:00:44 --:--:-- 11.1M
speed test of openVPN client (with openVPN enabled):
root@OpenWrt:/etc/openvpn# curl -o /dev/null http://speedtest.wdc01.softlayer.co
m/downloads/test500.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
2 500M 2 11.0M 0 0 40249 0 3:37:06 0:04:47 3:32:19 30913^C
As you can see, I couldn't even wait for it to finish.
speed test of openVPN client (with openVPN disabled):
root@OpenWrt:~# curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads
/test500.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 500M 100 500M 0 0 1761k 0 0:04:50 0:04:50 --:--:-- 2961k
Server.conf
local 1.2.3.4
port 443
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/serverdefault.crt
key /etc/openvpn/keys/serverdefault.key # This file should be kept secret
dh /etc/openvpn/keys/dh1024.pem
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist serverdefault-ipp.txt
client-config-dir ccd
route 192.168.1.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
cipher none
comp-lzo
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/serverdefault-status.log
log-append /var/log/openvpn/serverdefault.log
verb 3
mute 20
Client (open-wrt) config file:
config openvpn sample_client
option enable 1
option client 1
option dev tun
option proto tcp
list remote "1.2.3.4 443"
option resolv_retry infinite
option nobind 1
option persist_key 1
option persist_tun 1
option mute_replay_warnings 1
option ca /etc/openvpn/keys/ca.crt
option cert /etc/openvpn/keys/owrt.crt
option key /etc/openvpn/keys/owrt.key
option ns_cert_type server
option cipher none
option comp_lzo 1
option verb 10
option log /etc/openvpn/openvpn.log
option mute 20
Any ideas why my downloads are so slow? Thanks guys!