Serp07/dude_blacklist_ip

GitHub: Serp07/dude_blacklist_ip

基于MikroTik自动拉取并应用IP黑名单,阻断端口扫描与随机探测连接。

Stars: 0 | Forks: 0

```markdown updater_list_for_mikrotik last commit (main) updater_list_for_mikrotik License [![required RouterOS version](https://img.shields.io/badge/RouterOS-7.xx-yellow?style=flat)](https://mikrotik.com/download/changelogs/) [![required RouterOS version](https://img.shields.io/badge/RouterOS-6.xx-yellow?style=flat)](https://mikrotik.com/download/changelogs/) # MikroTik dude 黑名单 IP 地址列表 IP 地址列表基于通过陷阱检测端口扫描,以及随机连接到 Dude 服务器或 Mikrotik 本身。 要以自动模式添加,你只需要在 Mikrotik 上创建一个脚本。该脚本还将添加一条防火墙规则,以自动阻止来自 IP 地址列表的请求。 ### 添加脚本 ``` /tool fetch url="https://raw.githubusercontent.com/Serp07/dude_blacklist_ip/main/dude_blacklist.rsc" mode=https dst-path=dude_blacklist.rsc :delay 2 /import file=dude_blacklist.rsc :if ([:len [/ip firewall filter find comment="AUTO_BLACKLIST_DROP"]] = 0) do={ /ip firewall filter add \ chain=forward \ in-interface=ether1 \ src-address-list=Dude_blacklist \ action=drop \ comment="AUTO_BLACKLIST_DROP" \ } } ``` ### 计划任务 接下来,你需要启动计划任务并定义脚本自动运行的间隔。 前往 System > Scheduler > Add > “命名你的脚本” ```
标签:Dude 服务器, Firewall Filter, HTTPS 下载, IP 地址列表, IP 封锁, MikroTik, RouterOS, Scheduler, 安全防护, 端口扫描检测, 网络防护, 网络陷阱, 脚本导入, 脚本自动化, 自动屏蔽, 自动阻止, 规则自动添加, 防火墙, 黑名单