Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-20-2009, 06:04 PM   #1
Registered: Sep 2004
Location: Sweden
Distribution: Slackware, Gentoo!
Posts: 115

Rep: Reputation: 15
Tweaking the spedd of OpenVPN, help needed.

Hi! [edit: speed isn't spelled spedd :/ ]

I have an issue where some employees with an assymetric connection, are complaining about horrible speeds using the OpenVPN I've set up.

Now everything is working fine for me as a OpenVPN-client and I'm on a 100/100Mbps fiber connection, the employees are all on 30/10Mbps DSL connections. The OpenVPN-server is on a 50/20Mbps DSL connection.
(100/100 would mean 100Mbps downstream and 100Mbps upstream)

I've read some about OpenVPN being slow with assymetric connections, and I'm trying to find a way to improve our situation.

This post;
talks about the differences between a tcp and udp based OpenVPN. His conclusion is that tcp is faster, and I'm wondering what your experiences are.

As of today I have a very generic setup.
Server config:
up "process -p OpenVPN.exe High"
port 1194
proto udp
dev tap
dev-node OpenVPN
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS"
push "dhcp-option WINS"
keepalive 10 120
status openvpn-status.log
verb 3
And my client config:
dev tap
dev-node OpenVPN
proto udp
remote remote-domain 1194
resolv-retry infinite
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
verb 3
Thank you!

Last edited by Alexander.s; 12-20-2009 at 06:08 PM.
Old 12-21-2009, 08:26 AM   #2
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,315

Rep: Reputation: 98
Not familiar with this issue, but it is possible that you are dropping a lot of UDP packets which could cause horrible performance, you could try TCP then you would have guaranteed delivery. This would ensure that all data is getting passed through and reassembled in the right order. UDP has no guarantee and is a best effort only. See if changing that makes any difference in the set up, maybe setup a second openVPN server running on a different port using TCP and change the clients that are having problems to the new setup and see if anything changes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-06-2009 09:23 AM
OpenVPN Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM
um, Tweaking Thom_Redhat Linux - Software 13 06-17-2003 03:10 AM
Connection tweaking needed arrruken Linux - Networking 5 05-28-2003 11:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:07 AM.

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