全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1734|回复: 4

[已解决] fail2ban对SSH管用但proftpd不管用不知道为何.

[复制链接]
发表于 2010-7-29 17:45:34 | 显示全部楼层 |阅读模式
我已经错误登录FTP几十次了.还是不行.
Use regex file : /etc/fail2ban/filter.d/proftpd.conf
Use log file   : /var/log/secure


Results
=======

Failregex
|- Regular expressions:
|  [1] \(\S+\[<HOST>\]\)[: -]+ USER \S+: no such user found from \S+ \[\S+\] to                                              \S+:\S+$
|  [2] \(\S+\[<HOST>\]\)[: -]+ USER \S+ \(Login failed\): Incorrect password\.$
|  [3] \(\S+\[<HOST>\]\)[: -]+ SECURITY VIOLATION: \S+ login attempted\.$
|  [4] \(\S+\[<HOST>\]\)[: -]+ Maximum login attempts \(\d+\) exceeded$
|
`- Number of matches:
   [1] 0 match(es)
   [2] 0 match(es)
   [3] 0 match(es)
   [4] 0 match(es)

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

Summary
=======

Sorry, no match
已解决,正确的规则是
  1. failregex = \(\S+\[<HOST>\]\)[: -]+ USER \S+: no such user found from \S+ \[[0-9.]+\] to \S+:\S+\s*$
  2.             \(\S+\[<HOST>\]\)[: -]+ USER \S+ \(Login failed\): Incorrect password\.\s+$
  3.             \(\S+\[<HOST>\]\)[: -]+ USER \S+ \(Login failed\): No such user found\.\s+$
  4.             \(\S+\[<HOST>\]\)[: -]+ SECURITY VIOLATION: \S+ login attempted\.\s+$
  5.             \(\S+\[<HOST>\]\)[: -]+ Maximum login attempts \(\d+\) exceeded\s+$
复制代码

[ 本帖最后由 ATOM 于 2010-7-29 21:49 编辑 ]
 楼主| 发表于 2010-7-29 18:41:30 | 显示全部楼层
有碰到过的吗?
发表于 2010-7-29 20:24:47 | 显示全部楼层
我虽然安装了,但是不怎么使用。
发表于 2010-7-29 21:14:46 | 显示全部楼层
你要指定proftp日志路径和一些FTP错误代码。[url=http://www.google.com/search?q=fail2ban+proftpd&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-USfficial&client=firefox-a]善用Google[/url]

[ 本帖最后由 诡谲 于 2010-7-29 21:16 编辑 ]

评分

参与人数 1威望 +20 收起 理由
ATOM + 20 解决了.

查看全部评分

发表于 2010-7-29 21:31:42 | 显示全部楼层
对VSFTP是管用的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-23 17:15 , Processed in 0.085508 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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