I have Openwrt x86 setup with Wiregueard on a subnet behind my OPNSense router.
With no vpn, I get +800Mbps according to Speeddtest.net
With Wireguard, I only get ~200Mbps.
I initially thought the issue was cpu throttling as my system would not scale above 1.1GHz but even after correcting the issue and the cpus scaling up to their max 2.4GHz, I am still only getting ~200Mbps down.
Could the double firewall/nat cause the slow speed?
Any thoughts/ideas appreciated.
My best guess is bw is bandwith and wg is wireguard but Im still not sure what you are asking.
If it answers your question, I am using this to connect to my vpn provider which gives me full speed when I use their apps etc so I should be getting +800Mbps with the vpn
It is possible that the vpn provider is not giving you that much speed. This can be the result of the price/tier you subscribe to (just like your isp) and/or their capabilities.
Try installing wireguard on your phone or computer and then run the same speed tests (be sure to deactivate the wireguard interface on the router first).
Let’s take a look at the config to make sure there are no errors.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Try changing it back and see if that improves anything. Aside from that, I don't know why it would be so slow -- I get faster than that with a Raspberry Pi 4.
Increased to 250Mbps but still not where it should be.
I|m going to try taking the OPNSense box out of the picture and see if that makes any difference.
First a correction. My x86 box is behind a router running OpenWRT on an Asus router, NOT behind an OPNSense box. The x86 box WAS an OPNSense box which I just converted to OpenWRT.
Now an update. I removed the Asus router running OpenWRT and setup the x86 box as the main router, so no more subnet. Ran the speedtest and got my full +800Mbps.
So the issue is definitely caused when I run the vpn on the subnet behind the other OpenWRT router.
wait.... this contradicts what you were saying earlier:
Your initial statement suggested that you have OpenWrt running on an x86 device. If OpenWrt was running on an Asus router, that was the reason for your issues.... the processor on that device is certainly not powerful enough to handle Wireguard at the full bandwidth.
This has nothing to do with the double-NAT situation and everything to do with the processor that is being used to handle the Wireguard encryption/decryption.
I have an Asus router with OpenWRT as my main router. No vpn.
I have a second router (the Zotac with Intel N4100 quad core) running OpenWRT x86 on a subnet, running the vpn, behind the Asus router.
If I setup the x86 router as the main router with vpn, I get +800Mbps
If I put the x86 router with vpn on a subnet behind the Asus router, I only get 200Mbps.
Hope this clarifies and thanks so much for your attention
Oh...I see. In that case, it could be an MTU issue (ironically) when you cascade the WG interface into wan of the x86 box up to the Asus router and out to the internet.
Aside from something of that nature, there's no reason that traffic would otherwise slow through the Asus if that device isn't responsible for any encrpytion/decryption, but rather just routing packets.
Its an Asus AX-1800S, which seems to be the same as a RTAX54.
As mentioned, if I turn off the vpn, it allows the subnet to connect at +800Mbps, so it is certainly capable of +250Mbps.
To ensure nothing else was slowing things down, I connected the Zotac box directly to the lan port of the Asus, so no hubs/switches in between them.
[/quote]
What Asus router are we talking about?
Is it indeed capable of routing 250 Mb/s ?
[/quote]
Is there anything I can do to test the above theory? I know I can change MTU on the Wireguard interface? What about the main router? Any settting I should ttry?
Since I cant seem to get full speed wiith the vpn on a subnet, if set the x86 box up as the main router with the vpn, can i specify which clients on the network shoulld go throough the vpn or restrict which clients use it?