Giter VIP home page Giter VIP logo

Comments (2)

toorop avatar toorop commented on June 13, 2024

C'est curieux cette histoire...
Dans l'absolu je ne vois pas trop ce que va changer A vs I, si ce n'est pour une question d'optimisation car il y a plus de chance d'avoir une IP récente qui re-essaye.
Je vais essayer de trouver le temps de creuser (a priori pas avant la semaine prochaine)

from banisher.

w4zu avatar w4zu commented on June 13, 2024

Je viens de vérifier suite à un problème je confirme que le ban ne passe pas s'il y a une règle présente type :

-A INPUT -m comment --comment "DROP ALL" -j DROP
-A INPUT -m comment --comment "LOG_DROP ALL" -j LOG_DROP

La règle qui est ajoutée par banisher en -A est ajouté après c'est 2 règles et donc rend inactif la/les règle·s suivante·s.
Voici un output d'iptable

-A INPUT -p tcp -m multiport --dports 22 -m comment --comment "00022 SSH ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 22 -m comment --comment "00022 SSH TRUST" -j TRUST
-A INPUT -p tcp -m multiport --dports 25 -m comment --comment "00025 INPUT SMTP ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 110 -m comment --comment "00110 INPUT POP3 ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 143 -m comment --comment "00143 INPUT IMAP ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 465 -m comment --comment "00465 INPUT SMTPS ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 587 -m comment --comment "00587 INPUT SMTPS ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 993 -m comment --comment "00993 INPUT IMAPS ACCEPT" -j ACCEPT
-A INPUT -p tcp -m multiport --dports 995 -m comment --comment "00995 INPUT POP3S ACCEPT" -j ACCEPT
-A INPUT -m comment --comment "LOG_DROP" -j LOG_DROP
-A INPUT -m comment --comment "ALL DROP" -j DROP
-A INPUT -s 128.199.149.111/32 -j DROP
-A INPUT -s 13.69.48.210/32 -j DROP
-A INPUT -s 148.245.13.21/32 -j DROP
-A INPUT -s 104.248.119.77/32 -j DROP
-A INPUT -s 94.177.172.224/32 -j DROP
-A INPUT -s 115.68.207.164/32 -j DROP
-A INPUT -s 165.22.65.134/32 -j DROP

la seule option que je vois est de ban via iptables -I

from banisher.

Related Issues (6)

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.