How to increace the data transfer rate in openvpn

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Sreejith P
OpenVpn Newbie
Posts: 1
Joined: Fri Apr 08, 2011 6:35 am

How to increace the data transfer rate in openvpn

Post by Sreejith P » Fri Apr 08, 2011 6:44 am

Hi ,

I have a large number of servers set in amazon and they are connected via openvpn so that i can access my home destop also. I found that the data transfer rate is very low about 5MBps ( the data transfering is done via openvpn ) . I wonder if there is any way to rise this data transfer rate to some high value about 20MBps. Can you please help to raise this data transfer rate? Please find the server.conf and client.ovpn shown below :

######################server.conf##############################
port 1194
proto tcp
dev tun
ca easy-rsa-2.0/keys/ca.crt
cert easy-rsa-2.0/keys/server.crt
key easy-rsa-2.0/keys/server.key
dh easy-rsa-2.0/keys/dh1024.pem
server 172.22.21.0 255.255.255.0
keepalive 10 30
comp-lzo
cipher AES-256-CBC
persist-key
persist-tun
verb 3
push "route 172.22.21.0 255.255.255.0"
;push "dhcp-option DNS 8.8.8.8"
;crl-verify easy-rsa-2.0/keys/crl.pem

status /var/log/openvpn.status 30
status-version 2
duplicate-cn

####################################################################



#############################client.ovpn##############################
client
dev tun
proto tcp
remote 184.73.238.166 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
cipher AES-256-CBC
verb 3
route-method exe
route-delay 2
pull

###################################################################

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

Re: How to increace the data transfer rate in openvpn

Post by janjust » Mon Apr 11, 2011 12:11 pm

try adding

Code: Select all

tcp-nodelay
on the server; you can also try playing with

Code: Select all

mssfix 1400
or try lowering the MTU size of the tap adapters on both ends.

Post Reply