I want to automatically block IP that scanning my server (detected with portsentry) where several website are.
I don't know which level to choose to ban ip ranges. / 24, / 16 other? From what level is there a risk of false positives (legitimate traffic blocked)?
Example : this IP try an attack : 100.100.100.100, if I block 100.100.100.0/24 or 100.100.0.0/16 is it risky? What is the most appropriate level?