Coder Social home page Coder Social logo

Comments (3)

crazy-max avatar crazy-max commented on July 24, 2024 1

You right, if fail2ban is attached to DOCKER-USER chain instead of INPUT, the rules will be applied only to containers. This means that any packets coming into the INPUT chain will bypass these rules that now reside under the FORWARD chain. So sshd jail will not work as intended. You can create another container to attach fail2ban to INPUT chain for example. I will add a note about this, thanks for your input!

from docker-fail2ban.

crazy-max avatar crazy-max commented on July 24, 2024

@jribal Check this section. This is an easy workaround, but I think we can improve the configuration of the iptables-multiport action and use only one container.

from docker-fail2ban.

jribal avatar jribal commented on July 24, 2024

I'm no fail2ban or iptables expect, from what I read multiport allows to block more than the port attacked. I tried to block all ports on failure and I still had my "already banned", maybe you can do better.

My use case is using your container as a regular fail2ban installed on host. Except for tests or really specific setup, I don't see why would somebody wants to reject only traffic coming to "docker network" excluding host.

For me INPUT should be default but it depends on which behavior you expect.

from docker-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.