Control Web Panel

Security => CSF Firewall => Topic started by: zondar on May 06, 2020, 09:54:39 PM

Title: How to block a range of IP addresses?
Post by: zondar on May 06, 2020, 09:54:39 PM
Hi.
Is it possible to deny access from several ip addresses with one rule?
For example, how to add ip addresses to the blacklist: 110.92.30.30, 110.92.31.60, 110.92.86.90
one rule? Or should each address be added separately?
Title: Re: How to block a range of IP addresses?
Post by: rcschaff on May 06, 2020, 10:28:28 PM
Individual IP's should be one line. If however you want to block and entire subnet, you could use:
http://www.subnet-calculator.com/cidr.php to type in the IP, and adjust the CIDR to get a list of IP's (At the bottom).

Then use the Net: CIDR Notation to block the whole subnet.

EX:  TO block 110.92.30.0 - 110.92.30.255 you would use 110.92.30.0/24