当前位置:论坛首页 > Linux面板 > 求助

【待反馈】网站监控报表无法添加IP过滤黑名单

发表在 Linux面板7 天前 [复制链接] 1 52

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:[backcolor=rgba(245, 247, 250, 0.004)]网站监控报表 4.1.7
系统版本:[backcolor=rgba(255, 255, 255, 0.7)]v11.0.0   
问题描述: -- 失败,未能将IP加入到IP过滤程序中! -- 0   ,修复插件后依然出现这样的问题。
相关截图(日志、错误):

wechat_2025-09-06_200957_279.jpg
使用道具 举报 只看该作者 回复
发表于 5 天前 | 显示全部楼层
直接在waf上添加试试
或者尝试下面方法,先做好快照
  1. 将集合内容输出到文件进行备份:
  2. ipset save monitor_filter > monitor_filter_backup.txt
  3. 查看iptables规则引用了monitor_filter集合:
  4. iptables -L -n -v | grep monitor
  5. 先删除对应规则的引用:(跟据查看的出来的规则,执行相应的命令)
  6. iptables -D INPUT -m set --match-set monitor_filter src -p tcp --dport 888 -j DROP
  7. iptables -D INPUT -m set --match-set monitor_filter src -p tcp --dport 443 -j DROP
  8. iptables -D INPUT -m set --match-set monitor_filter src -p tcp --dport 80 -j DROP
  9. 删除monitor_filter集合:
  10. ipset destroy monitor_filter
  11. 重新添加并调整最大数量,maxelem参数用于指定集合可容纳的最大元素数量,即 IP 数量:
  12. ipset create monitor_filter hash:ip maxelem 500000
  13. 恢复导出的集合内容:
  14. ipset restore < monitor_filter_backup.txt
  15. 恢复之前iptables对monitor_filter集合的引用:
  16. iptables -A INPUT -m set --match-set monitor_filter src -p tcp --dport 888 -j DROP
  17. iptables -A INPUT -m set --match-set monitor_filter src -p tcp --dport 443 -j DROP
  18. iptables -A INPUT -m set --match-set monitor_filter src -p tcp --dport 80 -j DROP
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表