Blocking tens of thousands of IP's

Cox, Eric S eric.cox at
Tue Nov 1 22:35:34 UTC 2016

Currently we track all access logs realtime via an in house built log aggregation solution. Various algorithms are setup to detect said IPS whether it be by hit rate, country, known types of attacks etc. These IPS are typically identified within a few mins and we reload to banned list every 60 seconds. We just moved some services from apache where we were doing this without any noticable performance impact. Have this working in nginx but was looking for general suggestion on how to optimize if at all possible.

-----Original Message-----
From: Rainer Duffner [rainer at]
Received: Tuesday, 01 Nov 2016, 5:51PM
To: nginx at [nginx at]
Subject: Re: Blocking tens of thousands of IP's

> Am 01.11.2016 um 22:46 schrieb Jeff Dyke <jeff.dyke at>:
> what is your firewall?, that is the place to block subnets etc, i assume they are not random ips, they are likely from a block owned by someone??

Depends on the firewall, but our network-guys would refuse to do that (and have so in the past).
Apparently, the performance of firewalls when loaded with thousands of rules isn’t much to brag about ;-)

Additionally, they like to create their rules by hand instead of generating them (old school).

How are the IPs gathered?

nginx mailing list
nginx at


This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential and protected by law from unauthorized disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list