Git Product home page Git Product logo

Comments (3)

sblantipodi avatar sblantipodi commented on June 15, 2024

I have seen that the ban rules are inserted in iptables-legacy and not in iptables.
I can't use iptables-legacy as default since some other containers needs iptables nft.

does this image works with iptables-nft?

if yes, can I use both the REJECT rules from iptables nft and iptables legacy at the same time?
if yes, why
this line
REJECT all -- mob-myIP.net.vodafone.it anywhere reject-with icmp-port-unreachable
does not block my connection?

from docker-fail2ban.

sblantipodi avatar sblantipodi commented on June 15, 2024

I switched to iptables-legacy just to make a try...
update-alternatives --config ip6tables
update-alternatives --config iptables

rebooted the system.

iptables -L
shows that the ip is correctly banned but I have no problem in accessing my site...

Chain f2b-HASS (1 references)
target     prot opt source               destination         
REJECT     all  --  176.myip.0.0      anywhere             reject-with icmp-port-unreachable
RETURN     all  --  anywhere             anywhere      

from docker-fail2ban.

sblantipodi avatar sblantipodi commented on June 15, 2024

I solved by adding the DOCKER chain in the correct jail.

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.