Hi,

I have modified /etc/sysconfig/i18n by replacing all LC_xxx=fr_FR.UTF-8 by LC_xxx=C.
I set :
TransferLog /var/log/proftpd/proftpd.log 
SystemLog   /var/log/proftpd/proftpd.log

in /etc/proftpd.conf
and fail2ban is able to ban bad IPs.

In /var/log/proftpd/proftpd.log, the date format is now : Sep 29 20:10:20

Thank you for your help.

Xuo.

Le 29/09/2010 19:23, Xuo a écrit :
Le 29/09/2010 19:10, Tom Hendrikx a écrit :
On 28/09/10 21:03, René Berber wrote:
I'm not sure where is the standard, I don't use French but I have used
Spanish and the abbreviations are 3 letters and no dot, for month and day.

Fail2ban has some harcoded French month names, using unicode, in the
code you see things like 'TABLE["Feb"] = [u"Fév"]' which I think stands
for Février:, September doesn't have an entry since, using 3 letters, its
the same.  Additional to that, it does locale conversion, from any
configured locally to C which is English using ASCII, perhaps this part
is failing, if you have the correct locale it should have worked (but
syslog being in English does point that the locale is not French, but
English, or C, or none).

Is there some docs on how fail2ban manage locales and why it seems to
recognize only english format ?
I think it is quite common to use 'exotic' (i.e. any other than POSIX, C
or en_*) locales only in user profiles in stead of system wide, so they
don't apply to 'system' processes.

Last time I checked, my glibc included 320+ locales, so imho maintaining
a parser supporting all (or most) of them would take more work than all
of current fail2ban development time available :)
Hi,

I see. I'll try to use 'non-exotic' locales for all users except me.

Regards.

Xuo.
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users

------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users