Is it possible to remove IP that belongs to blocked list in CIDR range?
Posted: 30 Nov 2020, 14:48
To demonstrate this question,
Let's say I have this 3 IPs:
1.1.1.1, 1.1.1.2 and 1.1.1.3
Now I want to block each of this IP individually using csf. So,
csf -d 1.1.1.1
csf -d 1.1.1.2
csf -d 1.1.1.3
Success, now all of them are blocked in /etc/csf/csf.deny
But then if I want to block 3 of them using CIDR /24 notation. So I did this:
csf -d 1.1.1.0/24
Success, but CSF did not remove the previous 3 IPs and this looks redundant to me. Also when removing csf -dr 1.1.1.0/24, it did not remove all IPs belong to the network 1.1.1.0
Is there a hidden function that CSF can handle this or do I need to manually delete the entries after using CIDR block?
Let's say I have this 3 IPs:
1.1.1.1, 1.1.1.2 and 1.1.1.3
Now I want to block each of this IP individually using csf. So,
csf -d 1.1.1.1
csf -d 1.1.1.2
csf -d 1.1.1.3
Success, now all of them are blocked in /etc/csf/csf.deny
But then if I want to block 3 of them using CIDR /24 notation. So I did this:
csf -d 1.1.1.0/24
Success, but CSF did not remove the previous 3 IPs and this looks redundant to me. Also when removing csf -dr 1.1.1.0/24, it did not remove all IPs belong to the network 1.1.1.0
Is there a hidden function that CSF can handle this or do I need to manually delete the entries after using CIDR block?