Fail2ban 0.11.2 – nxd jail – IndexError(‘string index out of range’,)

Forums / NoMachine for Linux / Fail2ban 0.11.2 – nxd jail – IndexError(‘string index out of range’,)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36773
    Eelisland
    Participant

    Fail2ban 0.11.2 has a known bug that can be fixed by correcting the nxd.conf filter provided with NoMachine. This fix is from the Fail2ban maintainer.

    Fail2ban error:

    IndexError('string index out of range',)

    nxd.conf:

    #
    # Fail2Ban filter for NoMachine.
    #
    
    [Definition]
    
    #
    # Regex matches all accepted NX protocol connections.
    #
    
    datepattern = \son (?:%%a )?%%b %%d %%k:%%M:%%S(?:\.%%f)?(?: %%Y)?\.$
    failregex = ^Info: Connection from <ADDR>
    
    ignoreregex =

    Link to NoMachine Fail2ban article

     

    #36781
    Britgirl
    Keymaster

    Hi, thanks for this. We are now verifying. Do you happen to have a link to the known Fail2ban bug? That way we can link to it.

    #36784
    Eelisland
    Participant

    Sure, this is the post i open on fail2ban Github, Sebres linked the issue in his answer:

    https://github.com/fail2ban/fail2ban/discussions/3188

    Best,

    #36819
    Britgirl
    Keymaster

    Thank you for that! We checked and can confirm the fix you provided works when for that version of Fail2ban 0.11.2. We will be updating our article about Fail2ban soon (https://www.nomachine.com/AR05P00983).

Viewing 4 posts - 1 through 4 (of 4 total)

This topic was marked as solved, you can't post.