TCP over Wireguard VPN
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: TCP over Wireguard VPN
TCP over Wireguard VPN
a week ago
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
Hoping a SuperUser (or someone with knowledge) can help.
TCP connections carried over WireGuard VPN are catastrophically bad - consistently dropping to around 10–15 Mbps with very high TCP retransmissions (on a 900/110 connection).
I’ve tried multiple Linux hosts, multiple WireGuard servers, different hardware, two different VPSs, so I don’t believe it is specific to a single device or WireGuard configuration. LAN performance is normal.
Is there anything on a Plusnet line that can affect TCP flows or UDP/Wireguard traffic - rate limiting, PPPoE issues, MSS or MTU handling - or anything related to packet loss, retransmissions, errors on my line? Any known issues affecting VPN traffic?
Any help/info gratefully received.
Re: TCP over Wireguard VPN
Saturday
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That sounds like an MTU issue. Try lowering the MTU for your connection.
As you may be aware, this can be necessary as a VPN adds a wrapper around each packet which makes it larger - if that exceeds the MTU of the link the packet will be split into two for transmission and then (hopefully) reassembled at the far end.
However, in the best case that adds work which slows things down, and in the worst the packets don't get reassembled (some devices are very bad at this!) and are dropped.
In your case with high retransmission rates it sounds as if packets are being dropped.
Re: TCP over Wireguard VPN
Saturday
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Full Fibre 900/100, Wireguard server is hosted on a raspberry pi.
This thread has prompted me to reseach Wireguard MTU.
It appears Wireguard default is 1420; it assumes the WAN connection MTU is 1500; but TP-Link route can be only set a maximum of 1492 which is recommended for PPPoE.
So the suggestion is to reduce the Wireguard to 1412
But, I haven't noticed anything which prompts me to think I need to change anything, until now!
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: TCP over Wireguard VPN
Saturday
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@Dan_the_Van I run a wireguard connection to the office. The MTU is also set at the 1420 default but I havent noticed any problems
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Re: TCP over Wireguard VPN
Saturday
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
MTU can vary according to the individual path - it isn't an exact science - so it may be worth lowering it if only to rule it out as a possible cause.
Also, if the OP has a static IP I recall that the MTU is slightly lower for that (a static IPs is routed differently).
Re: TCP over Wireguard VPN
Sunday
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Im running Wireguard on a RPI4 on a 500Mb connection. I’ve never had a speed issue.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: TCP over Wireguard VPN