fail2ban/fail2ban — Issue #9: DeprecationWarning: the md5 module is deprecated use hashlib instead import md5
Author: letscorpvella
Created: 2011-11-23 06:50:54+00:00
State: open

Hi There,

We are receiving the following warning message while starting or restarting fail2ban,

Starting fail2ban: /usr/share/fail2ban/server/filter.py:430: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5

and in fail2ban log file,

fail2ban.comm : WARNING Invalid command: ['set', 'ssh-iptables', 'addlogpath', '/var/log/secure']

In this case, fail2ban started normally and sending an email. But no filters are working due to this warning.

We are using fail2ban version 0.8.2-3.el5.rf. How we can fix this issue.. Please help.

Thank you.