speed issues

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
robsterino
OpenVpn Newbie
Posts: 2
Joined: Sat Mar 17, 2012 2:28 pm

speed issues

Post by robsterino » Sun Mar 18, 2012 10:56 am

Hi,

I am trying to setup an openvpn configuration which lets me to share my internet connection with a friend in another country.
The objective is that he can use an ip address from my ISP to access certain multimedia sites(streams) which are only accessible
from within my ISP's network.

I have setup the openvpn sever, it works nicely, he is able to connect but his connection speed sucks big time.
Where his usual connection speeds are 5 Mbps / 1 Mbps and with 17ms ping, he is now having 0.14 Mbps / 0.14 Mbps with 444 ms ping.

I am trying to find a way to improve the vpn connection speed and have already disable the cipher encryption but without any significant result.
I read somwhere that changing the MTU could help but I am not really convinced that this will be a solution.

Feel free to provide suggestions in how to resolve my issue here ...

current config:
router: Buffalo WZR-HP-G450H
firmware: DD-WRT 24sp2 multi 5/27/11 build 1740

My internet connection: 98 Mbps / 4 Mbps

configuration openvpn server (on router):
TUN
UDP
disabled LZO compression
redirect default gateway
MTU 1500
TLS Cipher disabled

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: speed issues

Post by janjust » Mon Mar 19, 2012 6:58 am

try lowering the MTU on the OpenVPN connection are add 'fragment', e.g.

Code: Select all

tun-mtu 1400
fragment 1200
to see if that helps performance; if this is a fragment/mtu issue then you can start tweaking them both to find the best performance.

Remember that your friend's connection will only be as fast as *your* upload speed, i.e. 4 MBps.

robsterino
OpenVpn Newbie
Posts: 2
Joined: Sat Mar 17, 2012 2:28 pm

Re: speed issues

Post by robsterino » Mon Mar 19, 2012 8:58 am

ok, did that but again no significant result, in what range I can tweak this MTU and mssfix/fragment setting?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: speed issues

Post by janjust » Mon Mar 19, 2012 9:38 am

for debugging, use

Code: Select all

cipher none
auth none
tun-mtu 1400
fragment 1200
mssfix
and test performance; then increase 'fragment' (I would not expect that lower values are needed).

Post Reply