免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1953 | 回复: 2
打印 上一主题 下一主题

[其他] fail2ban 匹配问题请教 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-06-03 10:59 |只看该作者 |倒序浏览
我使用fail2ban做正则表达式匹配的时候总是匹配不上,下面是匹配结果,请大神指点。

[root@localhost ~]# fail2ban-regex 'Jun  3 02:40:16 localhost postfix/smtpd[6206]: warning: 89.248.174.101: hostname hosted-by.ecatel.net verification failed: Name or service not known' 'localhost postfix/smtpd\[.*?\]: warning: \[<HOST>\]: hostname .*? verification failed: Name or service not known'

Running tests
=============

Use regex line : localhost postfix/smtpd\[.*?\]: warning: \[<HOST>\...
Use single line: Jun  3 02:40:16 localhost postfix/smtpd[6206]: war...


Results
=======

Failregex
|- Regular expressions:
|  [1] localhost postfix/smtpd\[.*?\]: warning: \[<HOST>\]: hostname .*? verification failed: Name or service not known
|
`- Number of matches:
   [1] 0 match(es)

Ignoreregex
|- Regular expressions:
|
`- Number of matches:

Summary
=======

Sorry, no match

Look at the above section 'Running tests' which could contain important
information.

论坛徽章:
0
2 [报告]
发表于 2015-06-11 16:51 |只看该作者
为什么没人帮忙解决啊。。

论坛徽章:
24
天蝎座
日期:2014-05-13 18:05:59IT运维版块每日发帖之星
日期:2015-11-26 06:20:00操作系统版块每月发帖之星
日期:2015-12-02 14:57:54IT运维版块每月发帖之星
日期:2016-01-07 23:01:56IT运维版块每周发帖之星
日期:2016-01-07 23:04:2615-16赛季CBA联赛之青岛
日期:2016-01-23 07:58:272016猴年福章徽章
日期:2016-02-18 15:30:3415-16赛季CBA联赛之北控
日期:2016-03-23 14:20:06IT运维版块每日发帖之星
日期:2016-04-01 06:20:0015-16赛季CBA联赛之吉林
日期:2016-06-28 13:51:54IT运维版块每日发帖之星
日期:2016-07-01 06:20:00IT运维版块每日发帖之星
日期:2015-11-23 06:20:00
3 [报告]
发表于 2015-06-24 10:47 |只看该作者
大部分人用该软体结合iptables直接拦截暴力破解的黑客,很少有人拿它做其他用途。建议去英文官网查查吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP