# Configuration to block users that tries to access router on non open port(s)

**URL:** <https://forum.mikrotik.com/t/configuration-to-block-users-that-tries-to-access-router-on-non-open-port-s/151840>\
**Category:** Useful user articles\
**Created:** [September 13, 2021, 10:06am UTC](https://forum.mikrotik.com/t/configuration-to-block-users-that-tries-to-access-router-on-non-open-port-s/151840 "2021-09-13T10:06:36Z")\
**Posts on this page:** 1\
**Showing post:** 85

<div class="post-metadata">

**Author:** ![Jotne](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jotne/32/56097_2.png) [@Jotne](https://forum.mikrotik.com/u/Jotne)\
**Post date:** [January 27, 2023, 6:13am UTC](https://forum.mikrotik.com/t/configuration-to-block-users-that-tries-to-access-router-on-non-open-port-s/151840/85 "2023-01-27T06:13:38Z")

</div>

On one test site I do run Cowrie (a honeypot server). There its easy to see that all that hits SSH and Telnet port are not humans, but scripts that do the same all over.

1. Search for open ports
2. Find a suitable open server with weak password.
3. Download a script/bin file that work for the current os (x86/arm/arc/mips etc)
4. Try to run the script and install a botnet on your host

This happens 200+ times a day.  
So if you have an open port 443/22/21, you need to protect your self. If not some one will enter and abuse your system in one way or another.  
God password, patching/update your server, limit who can access (if that is possible), and port blocking.  
By logging all that one IP tries, you can see that portscan of some or in worst case all port are part of the attack.  
I also do see that many blocks IP form Russia and China, but the are small in number compare to US.  
Percent country IP blocked last 7 days.

1. 10.3% Philippines
2. 9.8 % South Africa
3. 8.2% USA
4. 6.9% India  
.  
.  
x. 2.0% China  
.  
.

## Here are just the latest SSH/Telnet attack. . ![Telnet.png](https://data-discourse.cdn.mikrotik.com/original/3X/a/c/ac5251119d9440d3de0024bd0ce4696436cfb445.png)

Use **Splunk\>** to log/monitor your **MikroTik** Router(s). See link below. ![:mrgreen:](https://data-discourse.cdn.mikrotik.com/original/2X/4/442e459c5ced45cb70e8a05e77e07cea6fee4928.gif "Mr. Green")

**[MikroTik-\>Splunk](http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/1)**

---

_[View the full topic](https://forum.mikrotik.com/t/configuration-to-block-users-that-tries-to-access-router-on-non-open-port-s/151840)._
