Hello,
I set up blockhosts (version 2.0.2-1.noarch.rpm) on my test server running on Mandriva 07. I have the following /etc/blockhosts.cfg file:
HOSTS_BLOCKFILE = "/etc/hosts.allow"
LOGFILES = [ "/var/log/auth.log", ]
COUNT_THRESHOLD = 3
AGE_THRESHOLD = 720
But when I run blockhosts.py this is what I get:
FATAL ERROR: Failed to load blockfile - block-file marker error
Expected two marker lines in the file, somewhere in the middle of the file:
#---- BlockHosts Additions
#---- BlockHosts Additions
Here is the same erroe if I run it as
[adminxpt@ptxblackserv etc]# blockhosts.py -v
blockhosts 2.0.2 started: 2007-04-03 12:19:18 EDT
... load blockfile: /etc/hosts.allow
FATAL ERROR: Failed to load blockfile - block-file marker error
Expected two marker lines in the file, somewhere in the middle of the file:
#---- BlockHosts Additions
#---- BlockHosts Additions
Thanks for any help
/etc/hosts.allow configured?
Is the /etc/hosts.allow file configured correctly? Look at the INSTALL file, which contains complete documentation on how to enable BlockHosts - there are also some articles on the web with detailed steps for various distributions.
You need to add the #----
You need to add the #---- BlockHosts Additions to your /etc/hosts.allow (or .deny) files so blockhosts.py can insert the modifications.