Hello everyone, I am a newbie trying my hands on OpenWRT with my Etisalat provided DLink DIR 853 A3 router.
Background: I wanted to use ProtonVPN on my router and therefore had flashed it to OpenWRT 21.02.0-rc2 and then upgraded to openwrt-23.05.0-rc3-ramips-mt7621-dlink_dir-853-a3-squashfs-sysupgrade.
Now after setting up a network with the same, I am getting good speed as provided by ISP, 240-250 Mbps.
Current situation: I have set up Proton VPN (OpenVPN) on the same and now I am getting very slow internet speed around 15Mbps. I have contacted Proton and they say that "The downside to OpenVPN is that in its current architecture, it is not scalable. It runs as a monolithic process and cannot run multi-threaded.
This means that if you have a beefy processor with 8 cores and each of the core has 8 threads, OpenVPN will use only a single thread in one of the available cores.
Regarding routers - they do not have powerful CPUs, thus encrypting and decrypting OpenVPN traffic is a real challenge for them. For that reason, the speed can drop by a large amount"
Can anyone guide me if this is true and has anyone have any similar experience on this?
Yes, OpenVPN is single-threaded, so in essence (without going into technical details) it's correct. You could always try WireGuard instead (which ProtonVPN supports) which is way faster than OpenVPN, unless there's a specific reason you want to use OpenVPN.
Hey, Thanks @dannil , I have setup with Wireguard as well but the speed improvement does not get better with this even. Can I assume that this is because of the router is incapable of handling higher speeds? If yes, can you guide me to a better and a cheaper one which can handle 250Mbps+.. Thanks in advance.
Weird, I would've thought you should get at least better performance compared to OpenVPN, which makes me believe there's something else going on. Your DIR-853 A3 has almost the same internals as ZyXEL WSM20 (MT7621AT vs MT7621DAT, both with 2C/4T, 128MB flash and 256 MB RAM) and that manages close to 100 Mbit/s according to A Wireguard comparison DB - #56 by Hirogen. Have you enabled hardware flow offloading? If not, try that, and as @frollic suggested, run htop on your router to see the CPU load in real time when using your VPN. I would also advise you to try to run the WireGuard benchmark test from the link above to see if you're on par with for example WSM20.
If you're looking for a new router anyway (if you want 250+ Mbit/s as that won't ever be achievable with MT7621DAT), look in the table in the first post in the link above and get one within your budget/availability depending on country.
There might be something wrong in your setup as usually WireGuard is three times faster than OpenVPN.
For your router I would think a WG speed of over 50 Mb/s should be possible.
As a quick fix you can try to lower MTU on the WG interface, by default it is 1420 but try 1280 or even lower.
Enabling irqbalance and Offload are also things you should do.
Otherwise you can share your config for us to review:
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 keys, passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
wg show
Thanks but it did not solve the problem. Can you suggest a router which has capability of running Wireguard and that too in the similar speed from the ISP (around 25Mbps download)? and yes, it must be cheap enough.