Giter Club home page Giter Club logo

Comments (1)

sebres avatar sebres commented on June 5, 2024

Don't understand why you need this new issue or why the discussion cannot continue further in #3669, but OK.

I believe it's necessary to add support for the stable edition.

I though that I detailed wrote about the necessity and sense of this work.
But OK, just note that the time I spent for that minor stuff could be invested in further development of fail2ban.
Sad that a lot of trivialities like this hinder me to do another work (here and in other OSS projects).

config/filter.d/softethervpn_se.conf

I already wrote before:
many filters of the same thing are not welcome here, so in best case the version should be parametrized somehow.

The reason is - if one follows this strategy, in few years we'd have thousand filters (and jails) and nobody has overall control over it,

Here, '_se' indicates the Stable edition.

I don't like the naming too, because what is stable today becomes obsolete tomorrow.

As for parametrized filter, something like that could work (here logformat is the parameter controlling that):

[INCLUDES]
before = common.conf

[Definition]
failregex = <<logformat>/failregex>

logformat = singleline

[singleline]
failregex = ^<__prefix_line>(?:(?:\([\d\-]+ [\d:.]+\) )?<SECURITY_LOG>: )?Connection "[^"]+": User authentication failed. The user name that has been provided was "<F-USER>(?:[^"]+|.+)</F-USER>", from <ADDR>\.$

[multiline]
failregex = ^\s*The <F-NOFAIL>connection</F-NOFAIL> "<F-MLFID>CID-\d+</F-MLFID>" \(IP address: <ADDR>,
            ^\s*Connection "<F-MLFID>CID-\d+</F-MLFID>": User authentication failed\. The user name that has been provided was "<F-USER>[^"]+</F-USER>"

from fail2ban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.