Blockhosts doesn't run automatically from /etc/hosts.allow

For some unknown reasons, blockhosts runs fine manually but it's not able to pickup automatically failed logins from /etc/hosts.allow

I have to run it manually all the time.

All the commands spans on 1 line though. Any clues.

Check out requirements

First thing to do is the check the requirements - listed in the FAQ.

Then run with -v option, capture to log file, and see if blockhosts.py is being run by the system on failed login, and the -v option also provides clues on what happened.

Thanks.. For some reason it

Thanks.. For some reason it needed:

sshd, sshd1, sshd2, proftpd: ALL: spawn /usr/bin/blockhosts.py ...

Yeah sshd1 and sshd2 had to be implemented.

Thanks for the reply.

With only *sshd* it doesn't pickup anything except when I run it.

--

Peter.