If no connects - blocking not released

Hello again

Another problem: If no connections ocours from other none-blocked hosts, then the blocking list is not cleared. Can I just run /usr/bin/blockhosts.py from crontab once every hour.

What options should I use when run from cron?

--
regards
Klaus

crontab, for cleanup

Sure, you can use crontab in case you want previously blocked hosts to be cleared in the case you outlined.

Use the exact same entry you are using in /etc/hosts.allow or hosts.deny as your crontab command, one example, assuming /usr/bin has blockhosts.py, is:

/usr/bin/blockhosts.py --verbose --echo "crontab run" >> /var/log/blockhosts.log 2>&1

Or if you don't need any logging:

/usr/bin/blockhosts.py > /dev/null 2>&1