LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2009, 06:04 PM   #1
Alexander.s
Member
 
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; http://openvpn.net/archive/openvpn-d.../msg00001.html
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:
Code:
up "process -p OpenVPN.exe High"
local 10.10.10.6
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
server-bridge 10.10.10.150 255.255.255.0 10.10.10.151 10.10.10.200
push "dhcp-option DNS 10.10.10.6"
push "dhcp-option WINS 10.10.10.6"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
And my client config:
Code:
client
dev tap
dev-node OpenVPN
proto udp
remote remote-domain 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
comp-lzo
verb 3
Thank you!

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

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


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:40 AM.

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