Package: fail2ban
Version: 0.9.2-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?
Installed fail2ban 9.2.1 - activeted fakegooglebot filter

* What was the outcome of this action?
Googlebot is being banned, I don't really care but other might.

====================
the following is an examle of the message I am getting.
-----------
2015-05-08 16:02:30,065 fail2ban.filter         [1107]: INFO    [apache-
noscript] Found 101.251.205.250
2015-05-08 16:13:54,834 fail2ban.action         [1107]: ERROR
/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot 66.249.64.163 -- std
out: b''
2015-05-08 16:13:54,834 fail2ban.action         [1107]: ERROR
/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot 66.249.64.163 -- std
err: b'Traceback (most recent call last):\n  File
"/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot", line 31, in
<module>\n    is_go
oglebot(process_args(sys.argv))\n  File "/etc/fail2ban/filter.d/ignorecommands
/apache-fakegooglebot", line 17, in process_args\n    from fail2b
an.server.filter import DNSUtils\nImportError: No module named
fail2ban.server.filter\n'
2015-05-08 16:13:54,836 fail2ban.action         [1107]: ERROR
/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot 66.249.64.163 -- ret
urned 1
-------------
====================


-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fail2ban depends on:
ii  init-system-helpers  1.23
ii  lsb-base             4.1+Debian13+nmu1
ii  python3              3.4.2-2
pn  python3:any          <none>

Versions of packages fail2ban recommends:
ii  iptables           1.4.21-2+b1
ii  python             2.7.9-1
ii  python3-pyinotify  0.9.5-1
ii  python3-systemd    215-17
ii  whois              5.2.7

Versions of packages fail2ban suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20141216cvs-2
ii  monit                        1:5.12.2-1
ii  rsyslog [system-log-daemon]  8.9.0-1

-- Configuration Files:
/etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot changed:
import sys
def process_args(argv):
    if len(argv) != 2:
       sys.stderr.write("Please provide a single IP as an argument. Got: %s\n"
                        % (argv[1:]))
       sys.exit(2)
    ip = argv[1]
    from fail2ban.server.filter import DNSUtils
    if not DNSUtils.isValidIP(ip):
       sys.stderr.write("Argument must be a single valid IP. Got: %s\n"
                        % ip)
       sys.exit(3)
    return ip
def is_googlebot(ip):
    import re
    from fail2ban.server.filter import DNSUtils
    host = DNSUtils.ipToName(ip)
    sys.exit(0 if (host and re.match('crawl-.*\.googlebot\.com', host)) else 1)
if __name__ == '__main__':
    is_googlebot(process_args(sys.argv))

/etc/fail2ban/paths-common.conf changed:
[INCLUDES]
after  = paths-overrides.local
[DEFAULT]
sshd_log = %(syslog_authpriv)s
dropbear_log = %(syslog_authpriv)s
syslog_daemon =
syslog_ftp =
syslog_local0 =
syslog_mail_warn =
syslog_user =
auditd_log = /var/log/audit/audit.log
exim_main_log = /var/log/exim/mainlog
nginx_error_log = /var/log/nginx/error.log
nginx_access_log = /var/log/nginx/access.log
lighttpd_error_log = /var/log/lighttpd/error.log
suhosin_log = %(syslog_user)s %(lighttpd_error_log)s
proftpd_log = %(syslog_ftp)s
pureftpd_log = %(syslog_ftp)s
wuftpd_log = %(syslog_ftp)s
vsftpd_log = /var/log/vsftpd.log
postfix_log = %(syslog_mail_warn)s
dovecot_log = %(syslog_mail_warn)s
solidpop3d_log = %(syslog_local0)s
mysql_log = %(syslog_daemon)s
ignorecommands_dir = /etc/fail2ban/filter.d/ignorecommands

/etc/fail2ban/paths-fedora.conf 92d8fee4933da1ef88008f44c078ce36 [Errno 2] No
such file or directory: u'/etc/fail2ban/paths-fedora.conf
92d8fee4933da1ef88008f44c078ce36'
/etc/fail2ban/paths-freebsd.conf 97b6fb0c6f477725a377062a5c453ce1 [Errno 2] No
such file or directory: u'/etc/fail2ban/paths-freebsd.conf
97b6fb0c6f477725a377062a5c453ce1'
/etc/fail2ban/paths-osx.conf 4b87178c204ea3e59bcbcf705400854b [Errno 2] No such
file or directory: u'/etc/fail2ban/paths-osx.conf
4b87178c204ea3e59bcbcf705400854b'


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to