LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2010, 04:15 PM   #1
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Rep: Reputation: 16
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
 
Old 08-19-2010, 04:43 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
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.

Last edited by xeleema; 08-19-2010 at 05:23 PM.
 
Old 08-19-2010, 05:14 PM   #3
ajayan
Member
 
Registered: Dec 2007
Posts: 89

Original Poster
Rep: Reputation: 16
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
 
Old 08-25-2010, 02:15 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Poor network file transfer speed Neo1 Linux - Networking 1 06-14-2009 06:21 PM
openvpn speed is capped jonnytabpni Linux - Networking 0 04-18-2009 06:51 PM
mplayer -ao pcm poor quality when at slow speed chadwick Linux - General 6 03-04-2007 03:18 AM
Poor file transfer speed with sftp six6 Fedora 3 07-29-2004 12:22 AM
Somewhat poor speed uglydot Linux - Software 4 10-16-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration