Add support for blocking subnets in firewall backends.
Daniel Aleksandersen
Branch: subnet_blocking
Branch: master
Merged
Merged pull request
Add support for blocking subnets in firewall backends.
Add support for blocking subnets in firewall backends.
Defaults to blocking single addresses. Configurable with new IPV6_SUBNET and IPV4_SUBNET configuration options.
Also introduce two new flag options, -N and -n, to pass subnet sizes to backend but these are undocumented in favor of config files.
FirewallD backend uses ipset command to flush rather than recreate the ipset with FirewallD tools. Reloads firewall configuration less often.
Partially resolves issue #69. Subnet based attack source matching not included in this work, only blocking.