WireGuard / wireguard-vyatta-ubnt

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

Performance extremely slow on ER-X with hw offload enabled #62

Open eng3 opened 3 years ago

eng3 commented 3 years ago

Using ER-X. When hw offload is enabled (to achieve gigabit network speeds internally), wireguard traffic is extremely slow (< 500 KBps) and unreliable. When hw offload is disabled, wireguard traffic is normal (> 1 MB/s) (however internal network speeds are 1/3)

odhnera commented 3 years ago

This doesn't seem to be limited to Wireguard. I've also noticed this with my Hurricane Electric 6in4 tunnel; when HWNAT is enabled, the tunnel is uselessly slow, but when HWNAT is disabled, everything runs fine.

eng3 commented 3 years ago

I would think hw offload should speed up things, not slow it down

mobad commented 3 years ago

There's more discussion here https://github.com/WireGuard/wireguard-vyatta-ubnt/issues/23 https://github.com/Lochnair/vyatta-wireguard/issues/98 https://community.ui.com/questions/Paket-loss-with-hwnat-enabled-to-Wireguard-device/e0112b17-ff0b-4348-893c-73b413873209

I was hoping 2.0.9 would solve it as it had a bunch of HW offloading fixes https://dl.ubnt.com/firmwares/edgemax/v2.0.9/changenotes-v2.0.9.txt but unfortunately not...