How to block Bulk IP?

I want to block a lot of IP

Create firewall rules for each one? Is there any more fast way without installing any additional packages?

create an ipset, use that ipset in the blocking fw rule.

the banIP package does this for you, but you didn't want any additional software.


That what I done

Where? You mean forward? Or what?

if you want to disallow access, reject the traffic ?

1 Like

Yes. I what to block it totally.

it wasn't a question.

1 Like

In this context, "fw" means firewall. So, you create an ipset, put all the addresses there, then create a rule on the firewall to block all traffic coming from an IP in the set.

You could create a script to refresh the ipset periodically.