How to improve Wireguard speed?
Roman Mamedov
rm at romanrm.net
Wed Jun 1 09:51:43 UTC 2022
On Wed, 1 Jun 2022 10:07:31 +0100
Houman <houmie at gmail.com> wrote:
> I didn't change the MTU settings, but I have a suspicion about MTU. I
> found this article here that makes some interesting suggestions to set
> MTU to 1280: https://keremerkan.net/posts/wireguard-mtu-fixes/
>
> And beyond that iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j
> TCPMSS --clamp-mss-to-pmtu
So did you apply both of that, and what was the effect?
What are the other point that you test against, is it another VPS (better if
you could try with that), or your home connection?
It could be your home provider has different speed limits (shaping) in place
for UDP. Should be possible to test this with:
iperf3 -s # on VPS
iperf3 -u -b 500M -c <VPS IP> -R # on the other side
And then see how many "Lost/Total Datagrams" (xx %) you get. A high percentage
would indicate that the actual top speed for UDP is less than 500Mbit by this
value.
--
With respect,
Roman
More information about the WireGuard
mailing list