Perhaps
https://pypi.python.org/pypi/ipwhois
Could come in handy here, (and ipset)
On Apr 14, 2017 4:32 PM, "Terry Carmen" <te...@cnysupport.com> wrote:
> I'm getting tons of banned IP addresses, but they all aggregate into
> allocations for a hosting company or country.
>
> Is there any way to automatically replace a bunch of IPs with a single
> CIDR in the DROP rule?
>
> Terry
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Fail2ban-users mailing list
> Fail2ban-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fail2ban-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users