Giter Club home page Giter Club logo

Comments (6)

leeclemens avatar leeclemens commented on May 16, 2024

Could you just log iptables to some file (using syslog) and have fail2ban watch that file? If you already have iptables logging through syslog, use the log-prefix and a fail2ban regex to look for it....seems simple enough to do out-of-band :)

A more user-friendly way to get this going is all I can think of regarding changes to fail2ban...a jail config and setting for the iptables/syslog regex to look for....

from fail2ban.

yarikoptic avatar yarikoptic commented on May 16, 2024

yes yes yes -- it should be indeed quite trivial to work out -- just might be dependent on syslog configuration on where it dumps the iptables logs, otherwise it is just trivial and would not require any fail2ban code change -- just an action (to set iptable's log actions), filter (to monitor corresponding log with dumped logs from iptables) + jail ;-)

from fail2ban.

leeclemens avatar leeclemens commented on May 16, 2024

Seems excessive now that I think about it, would require logging every DROP/REJECT or inserting a rule where fail2ban does not usually (before any drop? dynamically somehow to see all traffic not explicitly accepted?). I'd probably suggest closing this Issue without further ideas.

from fail2ban.

yarikoptic avatar yarikoptic commented on May 16, 2024

well -- someone motivated could still come up with some recipe for piping those LOGs to fail2ban (thus avoiding permanent file storage) etc. Just a wishlist, so why not to keep it floating around?

from fail2ban.

leeclemens avatar leeclemens commented on May 16, 2024

Fair enough, I was flipping through the 100+ issues looking for something to help with and was a bit overcome/scattered by so many ... I'll say spurious, for lack of a better word ... requests. This particularly was a bit counter-intuitive to what I have learned as best firewall logging practice, so feel unlikely to be implemented even if coded into fail2ban. Just my two-cents :)

from fail2ban.

yarikoptic avatar yarikoptic commented on May 16, 2024

ok -- tagged with a brand new tag and closed to improve SNR on the issue tracker ;)

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.