Giter Club home page Giter Club logo

Comments (4)

sebres avatar sebres commented on September 22, 2024

This messages are not authentication issues directly, thus don't belong to the failures in normal mode.
It is rather a matter of ddos (or aggressive) modes.

Add mode = aggressive to the jail if you want match them together with authentication failures:

  [sshd]
+ mode = aggressive
  enabled = true

from fail2ban.

watchingfun avatar watchingfun commented on September 22, 2024

mode = aggressive

i try in /etc/fail2ban/jail.local and restart fail2ban server, but it's not work, Finally, I edited and modified mode = aggressive in /etc/fail2ban/filter.d/sshd.conf and restarted the service , it's successfully.
why jail.local is not work

from fail2ban.

watchingfun avatar watchingfun commented on September 22, 2024

mode = aggressive

i try in /etc/fail2ban/jail.local and restart fail2ban server, but it's not work, Finally, I edited and modified mode = aggressive in /etc/fail2ban/filter.d/sshd.conf and restarted the service , it's successfully. why jail.local is not work

oh my bad, i find reason; filter = sshd can't work with mode = aggressive i change to filter = sshd[mode=aggressive] it's ok

from fail2ban.

sebres avatar sebres commented on September 22, 2024

Yes, default filter definition looks like this:

filter = %(__name__)s[mode=%(mode)s]

In this case (you haven't overwritten the default filter parameter), setting of mode would work properly.

By the way:

  • don't copy jail.conf to jail.local: the later upgrade of jail.conf may not work, because parameters remain overwritten by old (previously copied) values, specified in local;
  • don't put all the values to the jail (don't rewrite all of them) - put only parameters you really need to overwrite.

Otherwise exact that things could happen.
Let alone you wouldn't know later which parameters are really needed.

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.