I installed OpenWRT about a month ago on a Linksys E8450. This is the first time I've flashed my router and there are many things about it that I like.
Unfortunately, my router has not been stable. It seems I have to restart my router about every 20 hours as I'm unable to access the internet or it is very slow. This feels an awful lot like a memory leak and my memory gets filled up in 20 hours.
On top of the main installation, I've installed AdGuardHome (which works fairly well) and nlbwmon. I've configured nlbwmon to store the database on attached USB drive.
What can I do to make this installation more stable? While I'm new to OpenWRT, I'm not new to Linux.
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:
First things first, you may want to consider disabling these features and monitoring the stability. With both disabled, does the system remain stable? Then if you enable one but not the other, does anything change? And then the opposite situation? Finally both together?
Moving on...
It would probably be wise to upgrade to 23.05.2 which is the latest and includes some bug fixes and security patches.
These two lines are not necessary and would make sense to delete. Without specifying options 3 and 6, the router's address will automatically be sent.
Delete the two dns entries here, too.
Remove this, too. There are three things here:
If your intention is to open a port to the internet where the target it the router itself, a standard traffic rule should be used instead of a redirect.
It's odd that you are redirecting port 22 to port 2. Did you change the ssh port on your router? What is the intent here?
It is not advisable to open your router to the internet like this. You'll be better off setting up a VPN (Wireguard is recommended) as a means to connect to your router/network -- that is more secure than opening ssh to the internet.
Adblocking lists can be very large and the e8450 does not have that much RAM (512 MB), those can easily kill it (running out of memory), so disabling that (and/ or keeping a close eye on memory consumption while it happens) should be among the first things to test.
So I did what @psherman and @slh suggested. (Sorry it's taken a few days.) Things are much more stable. I think the reason it was unstable was I was running AdGuardHome. Once that got removed, I didn't have problems. I'll just have to run it from a different machine.