WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.45k stars 68 forks source link

* Resolved, User error * Poor performance on ER-X #151

Open smartypantsuk opened 11 months ago

smartypantsuk commented 11 months ago

Admin please delete

dc361 commented 11 months ago

Just a guess but I'm thinking MTU. The MTU on my IOS client and my ER4 is 1420 and I get over 80% of my ISP bandwidth over the Wireguard connection.

dc361 commented 11 months ago

I agree but it is one of the easiest settings to try and I know when I originally tried wireguard on edgerouter the default MTU was 1500.

The other thing to check is that you have enabled hwnat (which is what the ER-X uses) and not IPV4/IPV6 forwarding which is what the ERL, ER4, etc use.

Salohcins commented 11 months ago

I think I might be missing something here... Won't your maximum available bandwidth be capped/determined by your upload speed to your remote device?

For comparison sake, what speed do you get on your laptop when you're on the 4G connection but not connected to the VPN?

To me it sounds like your phone is doing the correct thing (6Mb ~= 8Mb), and the laptop isn't. Really love to know how you go, as I'm currently considering using my router for Wireguard also.

smartypantsuk commented 11 months ago

Yes that was the problem. I was having a very dumb moment. If the client is behind a different Internet connection, the upload speed of the destination network is the limiting factor.

Sorry to waste your time, everything seems fine. Rubbish for me but fine 😄