I noticed in the router log that for a couple of days my router is constantly attacked from different iP addresses with unauthorized login attempts.
What do you recommend me to do in this case?
It’s the first time i experience this and i’m just a basic user of mikrotik routers.
Thank you.
(6487 messages not shown)
sep/27/2018 10:19:13 system,error,critical login failure for user guest from 103.207.39.173 via telnet
sep/27/2018 10:19:13 system,error,critical login failure for user root from 103.207.39.173 via telnet
sep/27/2018 10:19:14 system,error,critical login failure for user root from 103.207.39.173 via telnet
sep/27/2018 10:19:15 system,error,critical login failure for user admin from 103.207.39.173 via telnet
sep/27/2018 10:19:15 system,error,critical login failure for user root from 103.207.39.173 via telnet
sep/27/2018 10:19:16 system,error,critical login failure for user user from 103.207.39.173 via telnet
sep/27/2018 10:19:16 system,error,critical login failure for user root from 103.207.39.173 via telnet
sep/27/2018 10:19:17 system,error,critical login failure for user root from 103.207.39.173 via telnet
[adminxyz@MikroTik] >
This can not be default configuration.
Remote management telnet/ssh/web/winbox are all closed on outside interface.
Since you see what you see, your telnet to administrate your router in open and exposed.
Close it as soon as possible.
If you need remote management, use VPN to your box and do management through the tunnel.
If you can not use that, use at least ssh, not telnet.
Then do not use default port 22, but some like 34222 (random high port)
Also use port knocking to keep ssh closed until you need it. (search for how to set it up)
If you leave telnet open, its just matter of time before some finds your password using bruteforce.
I have added a rule on my MT that if some tries to access one blocked port, they are blocked on all port for 24 hour.
Its as rule that may be to hard for someone, it works nice for me. Its around 1500 blocked ip in the list all time.
See added Splunk logs:
Low dip. Restart.
High top, many ip in short time.
I agree with Jotne and would go one step further. If you must access remotely, I hope it’s always from the same place!! If not, you’re asking for trouble
If so, modify the firewall rule so as to accept tenet / ssh from the ip of the place you’re accessing the router from.
If the router from where you are telneting has a dynamic wan address, use a dynamic dns service. This will allow you to create a rule that will accept the connecting from a name (use address lists) rather than an ip address which may change often.
I still have problem with the router.
I deleted everything, made a configuration reset but I’m not able to upgrade or downgrade the RouterOS.
Current version on the router is 6.33.3. I tried downgrade to 6.0 and 6.30 and upgrade to 6.43.2 but after each restart the version is still 6.33.3
How can i upgrade my router since this version is compromised?