Community discussions

MikroTik App
 
sergiobortsov
just joined
Topic Author
Posts: 3
Joined: Thu Sep 06, 2018 11:51 am

Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 12:13 pm

Hi all!
Here's my situation.
I forgot to upgrade my router in time, so it became a part of the botnet. I've just upgraded the routerOS and also add the rules in firewall for 80 and 8291 ports.
But my public IP assigned to the router is in the spam list. And I found out that there is the traffic in the output chain to the mail servers on destination port 25.
I've blocked it also in the firewall, but is it possible to remove my router completely from the spam botnet? Or output connections to the 25 port is caused by something else?
Thanks for any help
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 916
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 12:23 pm

https://blog.mikrotik.com/security/winb ... ility.html

4) Use "Export" command to see all your configuration and inspect for any abnormalities, such as unknown SOCKS proxy settings and scripts.
 
sergiobortsov
just joined
Topic Author
Posts: 3
Joined: Thu Sep 06, 2018 11:51 am

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 2:30 pm

"/ip socks
set enabled=yes port=4145"
this is the reason?
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 916
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 2:38 pm

Yes :)
 
sergiobortsov
just joined
Topic Author
Posts: 3
Joined: Thu Sep 06, 2018 11:51 am

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 2:42 pm

so just disable it and that's all, or smth more needed?)
thanks
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 916
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 2:47 pm

Maybe, maybe not. You may post your config here (/export hide-sensitive) for review.
 
tippenring
Member
Member
Posts: 304
Joined: Thu Oct 02, 2014 8:54 pm
Location: St Louis MO
Contact:

Re: Mikrotik output traffic to the 25 port

Thu Sep 06, 2018 4:13 pm

so just disable it and that's all, or smth more needed?)
thanks
Maybe. If you haven't changed the credentials (all of them) for the router, then an attacker still has your user list. If you disable your firewall rules preventing access from the internet, they'll log in again and set it up again.

It's possible there are other issues that haven't been greatly publicized yet. Perhaps you have a script that has been tampered with to reverse SSH tunnel back to a C&C server. I doubt it, but it is impossible to say.

What I'm getting at is best practice is to wipe the router and install a fresh known-good config on it.