OpenSource Ghost DD-WRT User
Joined: 14 Feb 2022 Posts: 50
|
Posted: Tue Mar 05, 2024 19:40 Post subject: UDM can't handle WireGuard - how to trace the root cause? |
|
I tried several routers, including crappy ISP-provided ones and they all managed to provide me with proper WireGuard throughput of about 750Mb/s. My Unifi Dream Machine can't provide that, but my UniFi Dream Machine has a major issue when it comes to WireGuard. It gets stuck either at 250Mb/s or 350Mb/s or 425Mb/s or 450Mb/s. Do these numbers tell you anything? These are very specific bandwidth limitation points. This is with full stock default settings and the latest firmware. On top of that, after 5-10 tests, it disconnects from WAN and all devices become unresponsive for about 10 seconds.
Other routers reach 250-350Mb/s, stop there for a second, but quickly go up to 750Mb/s. I can connect, disconnect, do whatever, and speed stay consistent.
There is a situation where UDM can reach 500-600Mb/s bandwidth over WireGuard. That happens when connection closes suddenly, such as from client machine crash+reboot if reconnecting within 30-60s. Tweaking TCP Time-out (Close-Wait, Time-Wait, etc) doesn't help and WireGuard uses UDP anyway. Tweaking SysCTL kernel parameters also doesn't appear to help. It just gets stuck at those specific speeds (250Mb/s or 350Mb/s or 425Mb/s or 450Mb/s).
UniFi Dream Machine uses 4-core ARM Cortex-A57 CPU from 2012 and uses Alpine Kernel 4.19. Perhaps that is the issue? I am just guessing, but at least it allows SSH access. How can I trace the cause of the issue?
Last edited by OpenSource Ghost on Tue Mar 05, 2024 22:27; edited 2 times in total |
|
kernel-panic69 DD-WRT Guru
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
|
|