FruitChopper
Posts: 19
Joined: Thu Nov 09, 2017 10:28 pm
Location: Amsterdam, Netherlands

Slow PiVPN/OpenVPN speeds

Tue Apr 07, 2020 9:55 am

Hi guys,

Today ive setup a VPN on my Raspberry 3B. It works pretty well and i can access my local network (NAS etc).
But the up and down speed are complete garbage. Locally on my Pi i receive the max speed that is possible in my house (50mbps up and 50 mbps down). See picture below.
When i connect to the vpn using a client i get max 8mbps up & down. See picture below.

I tried to search the web but couldn't find a solution.

About 2 years ago i made the exact same setup and i received the max speed (if i remember correctly :P )

Is there any way i can improve this speed?

All help is appreciated ;)
Attachments
E535F5D5-FE8A-4B59-A134-7DD3FCD117A3.jpeg
E535F5D5-FE8A-4B59-A134-7DD3FCD117A3.jpeg (30.52 KiB) Viewed 250 times
Capture.PNG
Capture.PNG (25.87 KiB) Viewed 255 times

epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Slow PiVPN/OpenVPN speeds

Tue Apr 07, 2020 10:08 am

Encryption is costly.
I think a 3b can reach over 30Mbps when using aes-128, with client and server on a LAN.
Over the internet performance will decrease.
With another type of cipher performance will likely decease.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

FruitChopper
Posts: 19
Joined: Thu Nov 09, 2017 10:28 pm
Location: Amsterdam, Netherlands

Re: Slow PiVPN/OpenVPN speeds

Tue Apr 07, 2020 10:19 am

epoch1970 wrote:
Tue Apr 07, 2020 10:08 am
Encryption is costly.
I think a 3b can reach over 30Mbps when using aes-128, with client and server on a LAN.
Over the internet performance will decrease.
With another type of cipher performance will likely decease.
I am now using 256-bit encryption, its the lowest option i could choose from.

So there is no software tweaks i can do that can boost performance?
Attachments
Capture2.PNG
Capture2.PNG (98.72 KiB) Viewed 229 times

epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Slow PiVPN/OpenVPN speeds

Tue Apr 07, 2020 10:44 am

I’m afraid not.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

FruitChopper
Posts: 19
Joined: Thu Nov 09, 2017 10:28 pm
Location: Amsterdam, Netherlands

Re: Slow PiVPN/OpenVPN speeds

Wed Apr 08, 2020 7:16 am

After hours of searching a found a solution on page 4 or so on Google.
https://www.sonassi.com/help/troublesho ... or-openvpn

All i had to do was add MTU to the client .ovpns file.

Edit your .ovpns file with any text editor. Add 'mssfix (MTU Here)' to a new line at the top.

Now i receive max speed that is available in my house :D

Return to “Beginners”