WireGuard speed

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
300000
DD-WRT Novice


Joined: 18 Aug 2011
Posts: 11

PostPosted: Sun Oct 17, 2021 9:07    Post subject: WireGuard speed Reply with quote
I have linksys wrt32x and have newest firmware then making it as wireguard server . Speed when client connect only 90mb and no more than that. Compare with openvpn server on the same router . On openvpn client it can go up to 120 mb so it is very strange why my router wireguard is slower than openvpn?

What is max speed when you connect your router wireguard as client and what is speed upload when wireguard act as server ?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 8966
Location: Netherlands

PostPosted: Sun Oct 17, 2021 10:41    Post subject: Reply with quote
@300000 please do not hijack a thread.
See the forum guidelines about the best way to post and many more helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

I will split off your post

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
WireGuard Documents & Guides:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
OpenVPN Documents & Guides: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
IPSET: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327261
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 11745
Location: Texas, USA

PostPosted: Sun Oct 17, 2021 11:09    Post subject: Reply with quote
And you have to edit the OP so the subject is retained and the database is correct. Ay, caramba.
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 8966
Location: Netherlands

PostPosted: Sun Oct 17, 2021 14:09    Post subject: Reply with quote
You use the latest build, unfortunately latest can mean a lot, for me it is 47528 Smile

WireGuard is typically 3 times as fast as OpenVPN (2-4)
My R6400v2 35 Mb/s OpenVPN, WG: 100 Mb/s, my R7800 OpenVPN: 85 Mb/s, WG: 280 Mb/s

Your router should be able to do a little more, so I would expect above 300 Mb/s

But how did you measure the speed?
Maybe your VPN provider is capping the WG speed?
Maybe you connected to a server which was very busy?

A good way to measure performance is internally using a powerful machine (like your desktop) on the WAN side and another client connected on the LAN side and run iperf between those.

One setting, I can think of, which can influence WG is MTU (see the troubleshooting section).

Very early builds had a somewhat high MTU, max MTU is 1440 if you have IPv4 only (substract 8 for PPPoE) and 1420 if you also have IPv6.
Some providers which offer IPv4 and IPv6 simultaneously have an MTU of 1420 also for IPv4

So if you are certain your VPN provider is not capping the speed (e.g. test with a LAN client which use a WG client) then check MTU settings as outlined in the troubleshooting section.

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), WRT54GS v1.
WireGuard Documents & Guides:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
OpenVPN Documents & Guides: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
IPSET: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327261
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum