• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Blockhosts: Failed to load blockfile

Hallo Forenteilnehmer- /-innen,

installiert: OpenSuSE 11.1 und BlockHosts 2.4.0

Status: Anfänger, NewBie

Installation und Konfiguration verliefen für meine Verhältnisse sauber durch.

Habe folgende Konfiguration vorgenommen.
/etc/blockhosts.cfg
Code:
VERBOSE = Log.MESSAGE_LEVEL_NOTICE  #-> notice 
WHITELIST = [ "127.0.0.1", ] # default
LOGFILES = [ "/var/log/messages", ]

/etc/hosts.allow
Code:
# permanent whitelist addresses - these should always be ALLOWED access
ALL: 127.0.0.1 :allow
#
# next section is blockhosts section - it will add/delete entries in
# between the two marker lines (#----Block Additions)
#
#----BlockHosts Additions
#----BlockHosts Additions
#
# das Script soll bei jedem ssh-Login exekutiert werden; ohne weitere Angaben werden
# die blockhosts Logmeldungen an messages weitergegeben
sshd:ALL:spawn /usr/bin/blockhosts.py >> /var/log/messages

Bekomme nach dem starten von BlockHosts mit dem Befehl: blockhosts.py -v folgenden Fehler angezeigt.

Code:
blockhosts 2.4.0 started:2009-04-18 19:03:21 CEST
ERROR: Failed to load blockfile -block-file marker error
Excepted two marker lines in the file, somewhere in
the middle of the file: # ----BlockHosts Additions
                             # ----BlockHosts Additions

Traceback (most recent call last):
File "/usr/local/bin/blockhost.py", line2021, in <module> sys.exit (main())
File "/usr/local/bin/blockhost.py", line1935, in main dh.load_hosts_blockfile(prev_logoffsets)
File "/usr/local/bin/blockhost.py", line1360, in load_hosts_blockfile 
raise Missing Marker Error
__main__.Missing MarkerError

Kann mir vielleicht jemand aus dem Forum helfen!
Ich finde keine passende Lösung unter google. :???:

Vielen Dank und Gruß
René
 
Oben