Hello everybody!
I have very strange problem with connection speed through VPN. I have VPN server installed on VPS OpenVZ Debian server with fast connection (100Mb/s). VPN client is Windows XP computer located in China and connected to internet by medium speed connection. Strange thing is that when I'm downloading a file using VPN and web browser, speed is approx 20-40 kB/s. When I'm using download manager that divides file into parts and downloads them simultaneously, speed is 150 - 300 kB/s (each part is downloaded with speed 20-40 kB/s). I've checked my server: the same file downloaded as one part (using wget) to the computer that is VPN server can reach 5 MB/s - so it is not server connection speed problem. It can't also be problem with connection VPN server-client - data is going as one compressed and encrypted UDP stream so it shouldn't be difference between downloading in one or many parts. The same is with streamed videos - it is to slow to watch it without waiting for buffering but when I open several tabs with different videos all are loading with the same speed as if only one was opened. I've been trying turning off encryption/compression but without any result.
I have no idea if it is OpenVPN problem or maybe Linux server or WIndows client configuration. Maybe someone has some idea what could be wrong. Below config files for server and client:
server:
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/aaa.crt
key keys/aaa.key
dh keys/dh2048.pem
tls-auth keys/ta.key 0
server 10.19.87.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS DNS1_ADDRESS"
push "dhcp-option DNS DNS2_ADDRESS"
cipher BF-CBC
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
verb 4
client:
client
dev tun
remote SERVER_ADDRESS.com 1194
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
ca keys/ca.crt
cert keys/bbb.crt
key keys/bbb.key
tls-auth keys/ta.key 1
ns-cert-type server
cipher BF-CBC
comp-lzo
verb 4