Hi,

It seems that those days by default /usr/bin/python is version 2.7.9 so that the script /etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot cannot find the class DNSUtils that is in file /usr/lib/python3/dist-packages/fail2ban/server/filter.py since it is only available for python 3.

One solution is to apply the following patch to /etc/fail2ban/filter.d/ignorecommands/apache-fakegooglebot (replacing /usr/bin/python by /usr/bin/python3):

--- apache-fakegooglebot-dist   2015-05-14 19:29:31.551986026 +0200
+++ apache-fakegooglebot        2015-05-14 19:23:00.850141105 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# Inspired by https://isc.sans.edu/forums/diary/When+Google+isnt+Google/15968/
 #
# Written in Python to reuse built-in Python batteries and not depend on



Best regards.
Cyrille Mescam


--
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