Hey there.
I have a weird performance issue with Wireguard on OpenWRT. I'm pretty sure it's not the "my hardware is too slow" kind but rather a configuration thing. Let's hope I can do something without compiling anything.
I just installed OpenWRT on a Raspberry Pi 5.
OpenWRT runs Wireguard.
OpenWRT WAN port allows incoming 5001 connections for iperf.
The OpenWRT WAN port has 192.168.178.40
The OpenWRT Wireguard port has 10.0.0.1
I connected my computer via GBit cable to the network the WAN port of the Pi is in (so 192.168.178.0/24).
I'm running "iperf -s" on my Pi.
iperf -c 192.168.178.40
gives 1GBitiperf -c 192.168.178.40 -R
gives 1GBitiperf -c 10.0.0.1
only gives approximately 400MBitiperf -c 10.0.0.1 -R
gives 1GBit- My computer is a MacBook Pro M2
- The Mac "peaks" to 230% CPU, so plenty of CPU left
- My Pi peaks to (in average) 4* 20% when on 400MBIt mode
- The Pi peaks to (in average) 4*35% when on 1GBit mode
- So it shouldn't be CPU bound, right?
If I'm not mistaken, "iperf " sends data, while "iperf -R" makes the iperf server send data.
Any ideas why there's asymmetric performance between sending and receiving, and potentially what I can do about that? It's not the cable because without Wireguard I get full GBit through.
Thanks in advance,
Stephan.