Answer the question
In order to leave comments, you need to log in
How to add IP to ipset blacklist after blocking in iptables?
Hello.
Please tell me, here is the rule
iptables -A INPUT -p tcp -m multiport --dports $port -m length --length 3000:65535 -m recent --name get_packets --set
iptables -A INPUT -p tcp -m multiport --dports $port -m length --length 3000:65535 -m recent --name get_packets --update --seconds 15 --hitcount 100 -j REJECT
Iptables blocks packets, but how can I make it also send to ipset list so that later, when the rules are reset, he remembers those who have already fallen under sanctions?
I created the ipset list, how to fill it now, and how to block everything that is there
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question