poor uploading speed in Openvpn
Hi All,
I had configured openvpn (2.0.9) on my Centos 5.4 machine.I want to route all client traffic through my gateway.So i had enabled (push "redirect-gateway ") in server configuration.Now the problem is the upload speed is very low while connecting through vpn.Normally i got 700 kbps download and 650 kbps upload speed.But while connecting through Vpn the upload speed is only 110-130 kbps but download is almost stable.Here is my Server and client conf Files. Server ****** port 1194 proto udp dev tun ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt cert /etc/openvpn/easy-rsa/2.0/keys/abc.crt key /etc/openvpn/easy-rsa/2.0/keys/abc.key dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem server 172.24.0.0 255.255.0.0 ifconfig-pool-persist ipp.txt push "redirect-gateway" push "dhcp-option DNS 202.46.240.5" (My ISP DNS) keepalive 10 600 comp-lzo user nobody group nobody persist-key persist-tun status openvpn-status.log verb 3 Client ****** dev tun client remote serverip ca ca.crt cert Testing.crt key Testing.key persist-key persist-tun comp-lzo Openvpn server working behind a firewall,prerouting and masquerading is done properly.i had tested from Local network too.But the result is same.How can i improve uploading speed.Thanks in Advance Thanks Ajayan |
Greetings!
While not connected thru OpenVPN, go to SpeedTest.net. Run two tests, an hour apart, and take screenshots. Then, while connected thru OpenVPN, do the same thing again. Punch in the speed numbers here. EDIT: You need to run more than one test, and they have to be a bit apart. |
Thanks for your time,
Through openvpn Download speed is .50 Mb/s and upload speed is .36 Mb/s while testing directly its value is .62 Mb/s and .51 Mb/s. Any suggestions |
Hello again!
Only one test per connection isn't going to give you a consistent picture. One thing I would do is try to get a clear idea of the latency your connects are experiencing (remember to test more than once!). The 'ping' command can actually be good for this. Without using the OpenVPN service, have one of your clients ping the OpenVPN server about 100 times, then check your min/max/avg/mean (or whatever ping will report to you). Then have that same client ping google the same amount of times. Note that you're non-OpenVPN traffic will have to leave your network via the same Internet-facing gateway as it would if it were over OpenVPN. Now which is faster to respond? If google's average or mean millisecond times are *lower* than your own internal OpenVPN server, then you have a problem with your internal network infrastructure (or server configuration). If google's average or mean millisecond times are *higher* than your own internal OpenVPN server, that's expected. |
All times are GMT -5. The time now is 05:42 PM. |