Menu

#73 ERROR NOK: ('list index out of range',)

v1.0 (example)
open
nobody
None
5
2017-03-11
2017-03-11
No

root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client status
Status
|- Number of jail: 6
- Jail list: nginx-post, pam-generic, dovecot, exim-spam, exim, ssh root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client ping Server replied: pong root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client reload root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client status Status |- Number of jail: 6- Jail list: nginx-post, pam-generic, dovecot, exim-spam, exim, ssh
root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client get dbfile
ERROR NOK: ('list index out of range',)
Sorry but the command is invalid
Sorry but the command is invalid
root@NC-PH-0657-10:/etc/fail2ban# fail2ban-client get dbpurgeage
ERROR NOK: ('list index out of range',)
Sorry but the command is invalid


cat fail2ban.conf
(...)

Options: dbfile

Notes.: Set the file for the fail2ban persistent data to be stored.

A value of ":memory:" means database is only stored in memory.

and data is lost when fail2ban is stopped.

A value of "None" disables the database.

Values: [ None :memory: FILE ] Default: /var/lib/fail2ban/fail2ban.sqlite3

dbfile = /etc/fail2ban/db/fail2ban.sqlite3

Options: dbpurgeage

Notes.: Sets age at which bans should be purged from the database

Values: [ SECONDS ] Default: 86400 (24hours)

dbpurgeage = 86400

root@NC-PH-0657-10:/etc/fail2ban# dpkg -l fail2ban
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================-====================-====================-====================================================================
ii fail2ban 0.8.13-1 all ban hosts that cause multiple authentication errors
root@NC-PH-0657-10:/etc/fail2ban# uname -a
Linux NC-PH-0657-10 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux

Discussion


Log in to post a comment.