Not sure where to ask this question, so I’ll ask here.
I’ve got l009uigs-2haxd-in router, and connecting to it via Wireguard, I’m only getting around 70-80 mbps throughput (iperf3, tcp).
Is this normal for this router, or maybe I’ve misconfigured something?
I’m very new to networking and mikrotik ecosystem, so please excuse me if all of this is over my head.
I had problems with this particular wireguard tunnel (video streams not playing for ex.) until I lowered MTU to 1420, but the speed is still low.
If you would need my MikroTik configs, I can provide them.
Some more info:
On my end, ISP gives me 250 mbps symmetric connection.
On the other end of the tunnel is Ubuntu 20.4 virtual machine with gigabit connection and 6 cores from recent Ryzen Threadripper processor.
Before using this MikroTik router I used OpenWRT on Raspberry Pi 4, which had this tunnel running at almost full connection speed (a bit lower than 250 mbps). I remember I had to enable MSS clamping on OpenWRT for the tunnel to start working at full speed.
I would say that you are probably hitting the limit for Wireguard on the L009, it has only 2 ARM32 cores at 800. the rPi 4 have 4x ARM64 cores at 1.8GHz.
If you can, I would recommend keep using the rPi 4 for Wireguard.
the cheapest model from Mikrotik that can reach 300Mbps on Wireguard is the hAP ax2, I have used one for Site to Site vpn via wireguard and it could saturate the uplink of 300mbps without asking for help. It probably could go more than 300 easily
Post both configs… ( minus public WANIP info, keys etc. )
The default mtu setting is 1420 so dont understand why you lowered to the default??
Important is that both sides of the connection have the same mtu setting
Is there a way to confirm CPU is the limiting factor? My idea is to fill the tunnel with traffic and see routers CPU utilization.
I’ve purchased this router to simplify my network, and free up rPi4 for other uses. I do not really need (though it would be nice) very big speeds on that tunnel, just wanted to know if this is normal.
Hi,
I have been playing around with different configs on my mikrotik, trial and error, so a lot of disabled and overhead things.
Mikrotik config (a bit sanitized, hope not too much):
wgvpn is the tunnel in question WillSoL009.cfg.rsc (11.8 KB)
And wireguard config on server for the tunnel:
wgged - tunnel to UK server, for British TV, MikroTik router connects to the server using its IP and 51871 port. I only forward traffic through it from my local Roku box, rarely used.
wgvpn - tunnel in question, my MikroTik router is the server (waits for connection on port 51844 from my Ubuntu VM)
4 Endpoints??? Not really sure, all other wireguard configuration might be superficial. As I have said I have no idea what I am doing
If you mean subnets: 192.168.9.0/24 - wgvpn wireguard tunnel devices, 192.168.77.0 wgged tunnel devices (for UK gateway purpose), 192.168.5.0/24 my LAN subnet, 192.168.16.0/24 - forgot why this was set in the first place, should be removed. All IPV6 configs are not really used.
The separate wireguard config file I gave is from my virtual machine, it is trying to connect to MikroTik router WAN IP on port 51844
Sorry
the L009 device is a “to low-cpu” powered device.
There is no HW accelerated encryption / decryption using WG.
I love my L009 device for home using - low energy consumption a little “NAS” and container with linux.
Knowing the limitation(include WIFI) of this little red device
You can test it reality easy:
Open winbox connect the L009 device and show the CPU-panel.
Use 2 devices with 1Gbit ethernet and connect to the L009 device.
Make iperf test direct > IP-device1 to IP-device2 you should get about 850 - 900Mbits ore more (with WIFI AX 5G and a new iPAD / iPhone as client you get about 750 - 800Mbit)
Now make a NAT-rule in the L009 with redirect port 5201(TCP) to the iperf server port 5201 from all sources allowed.
Now test iperf from client to the L009 IP - you lost some percent’s of speed. Look while the tests on the CPU panel on winbox.
Only NAT-redirect eats 30-40% CPU.
Next configure the WG-tunnel (give the WG interfaces some IP-addresses outside the LAN addresses) connect the client with WG to the L009 box.
Now test iperf to the WG interface from the L009 device - now runs the test trough WG.
The CPU reaches 90+% in the winbox panel an the speed is about 100Mbit (range 90-120Mbit)
So see - the CPU IS THE LIMIT using WG, it “breaks” nearly 100Mbit.
If you have a transfer over the “real internet” also WAN with rates about 70 Mbit, it looks like a “good” value
Greets