Community discussions

MikroTik App
 
tomowariacina
just joined
Topic Author
Posts: 8
Joined: Fri Jan 21, 2022 4:42 pm

RB760iGS runs out of memory

Fri Jan 21, 2022 4:50 pm

Hello,
I've got very burdensome problem. For about 1 month RB760iGS running/leaking out of free memory. It starts with around 210MiB and after 5-10 minutes it has 60-90MiB and still goes down. After less than 10MiB it's restarting and these restarts happens 3-4 times a day.

I was trying to replace it by other iGS but the same problem occuring. I even upgrade new one using netinstall, disabled unnecessary packages. This router is connected to the switch. There's L2TP tunnel for monitoring and 2 more bridges - nothing more. I'm using 6.48.5 version.

Also logs from that error looks like below on both routers (old and new one):
router was rebooted without proper shutdown
kernel failure in previous boot
out of memory condition was detected
 
sindy
Forum Guru
Forum Guru
Posts: 8812
Joined: Mon Dec 04, 2017 9:19 pm

Re: RB760iGS runs out of memory  [SOLVED]

Fri Jan 21, 2022 5:46 pm

What does /ip firewall connection print count-only show when the free memory is around 90 MB?
Don't write novels, post /export hide-sensitive file=x. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
tomowariacina
just joined
Topic Author
Posts: 8
Joined: Fri Jan 21, 2022 4:42 pm

Re: RB760iGS runs out of memory

Fri Jan 21, 2022 6:31 pm

Too much :P
[admin@mmm] > /ip firewall connection print count-only     
203334
Is it possible that one of the clients has any malware or attacks on their network which causes that situation? I suspect that one of my clients could have one because I received some e-mails with vulnerabilities from their IP. Blocking forward traffic caused the connection count decreased to 198k.
 
sindy
Forum Guru
Forum Guru
Posts: 8812
Joined: Mon Dec 04, 2017 9:19 pm

Re: RB760iGS runs out of memory

Fri Jan 21, 2022 6:52 pm

Is it possible that one of the clients has any malware or attacks on their network which causes that situation?
Of course it is possible. Whether it is the real reason depends on the size of your network and the "legal" traffic of the clients.

Blocking forward traffic caused the connection count decreased to 198k.
Depending on what "blocking forward traffic" actually means, you may have prevented new connections from getting established (if you blocked just the packets establishing new connections), or you may have prevented existing connections from transporting any data, which will lead to existing connections to die out gradually.

I don't know what is the best starting point, but probably sniffing of LAN traffic to a connected PC and using Wireshark to display statistics.

Or maybe /ip firewall connection print count-only where repl-packets<3 is another good starting point.

The idea is that the connections get created but do not succeed, which means they exist until timeout (which may be hours long) and new ones are created.
Don't write novels, post /export hide-sensitive file=x. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
tomowariacina
just joined
Topic Author
Posts: 8
Joined: Fri Jan 21, 2022 4:42 pm

Re: RB760iGS runs out of memory

Fri Jan 21, 2022 7:49 pm

Thank you for your first answer and your explanations. Connecting e-mails with vulnerabilities and your command which you've sent in your first answer I solved the problem by blocking client who caused all this mess.

I torched potential IP address and in one minute it was around 45k entries. Blocking all forward traffic and rebooting the router solved the problem of running out of free memory. Right now it looks like that:
[admin@mmm] > /ip firewall connection print count-only
937
 
sindy
Forum Guru
Forum Guru
Posts: 8812
Joined: Mon Dec 04, 2017 9:19 pm

Re: RB760iGS runs out of memory

Fri Jan 21, 2022 7:53 pm

You could have removed connections initiated by that client using /ip firewall connection remove [find where src-address~"ip.of.that.client"] without annoying the other clients by the reboot, but let's hope you won't need this advice in near future 🙂
Don't write novels, post /export hide-sensitive file=x. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
pe1chl
Forum Guru
Forum Guru
Posts: 8350
Joined: Mon Jun 08, 2015 12:09 pm

Re: RB760iGS runs out of memory

Fri Jan 21, 2022 8:22 pm

Well, of course the router should not crash under such circumstances but should have a more reasonable reaction to running out of memory.
(probably difficult to have a behavior that does not harm other users in some way, e.g. refusing new connections is not going to help much more than crashing)

On the other hand, I am often surprised that people run networks "for clients" (probably not their son or daughter) on such a tiny router...

Who is online

Users browsing this forum: Kindis and 33 guests