Skip to content

[SOLVED] request help understanding: IndexError('string index out of range',) #3188

Answered by sebres
Eeel-12 asked this question in Q&A
Discussion options

You must be logged in to vote

string index out of range

This is known (and already fixed) bug...
See #3020 (comment)

You could avoid it without patching the fail2ban using more precise anchored datepattern:

[Definition]
datepattern = \son (?:%%a )?%%b %%d %%k:%%M:%%S(?:\.%%f)?(?: %%Y)?\.$
failregex = ^Info: Connection from <ADDR>

Nomachine provide a filter

Strange filter... how it is intended to work without false positives, for instance shall ignore legitimate users connecting more than 5 times in 4 hours (related to your jail settings).

but did not really undestood what is going on

Fail2ban extracts the date matching some (default) datepattern (needed to consider the time of failure), but since the time is at …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Eeel-12
Comment options

Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants