RouterOS防御暴力破解防火墙策略–官方策略-防御SSH暴力破解
- MikroTik官方的制作了一个如何防御暴力破解SSH登录,分享给大家。
- 防火墙规则如下:
- 一共是6条策略组成,必须按照顺序添加排列
/ip firewall filter
add action=add-src-to-address-list address-list=blacklist address-list-timeout=1d chain=input comment="black list" \
connection-state=new dst-port=22 protocol=tcp src-address-list=connection3
add action=add-src-to-address-list address-list=connection3 address-list-timeout=1h chain=input comment="Third Connection" \
connection-state=new dst-port=22 protocol=tcp src-address-list=connection2
add action=add-src-to-address-list address-list=connection2 address-list-timeout=15m chain=input comment="second Connection" \
connection-state=new dst-port=22 protocol=tcp src-address-list=connection1
add action=add-src-to-address-list address-list=connection1 address-list-timeout=5m chain=input comment="First Connection" \
connection-state=new dst-port=22 protocol=tcp
add action=accept chain=input comment="Accept exclude blacklist" dst-port=22 protocol=tcp src-address-list=!blacklist
add action=drop chain=input comment="drop all protocol ssh" dst-port=22 protocol=tcp
- 策略分解
- 第一条匹配来至第三次连接的地址列表,加入到blacklist列表,保存1天
- 第二条匹配来至第二次连接的地址类别,加入到connection3地址列表,保存1小时
- 第三条匹配来至第一次连接的地址列表,加入到connection2地址列表,保存15分钟
- 第四条匹配记录第一次SSH连接,连接类型new,加入到connection1地址列表,保存5分钟
- 第五条允许除了blacklist地址列表的SSH连接通过
- 第六条拒绝所有SSH连接
允许三次 SSH的连接请求(connection-type=new),当超过三次后会被加入blacklist,拒绝时间为1天。前三次的被允许存活时间分别是5分钟,15分钟和1小时

This message is used to verify that this feed (feedId:71877844470089728) belongs to me (userId:71877760930284544). Join me in enjoying the next generation information browser https://follow.is.
70918248
References:
legal steroid supplements (http://e-hp.info)
70918248
References:
Body Building Hormones (http://www.tsf.edu.pl/nietypowe-metody-fotografii/)
70918248
References:
how long do steroid withdrawal symptoms last (https://esporteamador.com/inscricoes-abertas-para-temporada-2024-da-liga-super-basketball/)
70918248
References:
Testosterone Steroid Pills (https://tailandiatours.com/temple-wat-arun/)
70918248
References:
Best injectable steroids – https://gamtechsol.com/index.php/2023/08/21/a-journey-through-earths-natural-splendor/,
70918248
References:
best steroid cycle For lean mass, https://bycom.fr/mastering-time-management-key-to-business-success/,
70918248
References:
none [https://woodlandla.com/leaves-should-be-shredded-before-used-as-mulch/]
70918248
References:
none (https://www.sekisui-phenova.com/hello-world/)
70918248
References:
https://www.airkeyhub.com/2023/04/09/get-ahead-of-your-competition-our-proven-digital/
dianabol 10mg cycle
References:
https://support.mikrodev.com/index.php?qa=user&qa_1=metalcone98
beginner dianabol cycle
References:
https://monjournal.xyz/item/298083
Incredible points. Great arguments. Keep up the amazing
effort. https://glassiuk.Wordpress.com/
Hey! This post could not bee written any better! Reading
through this post reminds me of my good old room mate! He always kept chatting about this.
I will forwar this article to him. Fairly certain he will have
a good read. Thanks for sharing! https://glassi-India.mystrikingly.com
Hi would you mind stating which blog platform you’re using?
I’m looking to start my own blg soon but I’m having a difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your desxign seems diffsrent
then most blogs and I’m looking for something unique.
P.S My apologies for getting off-topic but I hhad to ask! https://u7bm8.mssg.me/
Thanks for sharing your thoughts about Lucier. Regards https://glassi-App.Blogspot.com/2025/08/how-to-download-glassi-casino-app-for.html
Wonderful blog! I found it while surfing around on Yahoo News.
Do you have any suggestions oon how to get listed in Yahoo News?
I’ve been trying forr a while but I never seem to get there!
Thank you https://Jobsleed.com/companies/tonybet/
You can definitely see your skills in the article you write.
Thhe world hhopes for even more passionate writers like you who are nott afraaid
tto say how they believe. At all times follow your heart. https://Jobs.sharedservicesforum.in/employers/tonybet/
I doo not even understand how I fiinished up right here, buut I assumed this post used to be good.
I do not understand who you aree but certainly you are going to a famous blogger should you are not already.
Cheers! https://stepaheadsupport.co.uk/companies/tonebet-casino/