block ip/subnet at socket lvl

Alfredo Palhares masterkorp at
Fri Sep 9 21:02:02 UTC 2011


I think that out of nginx scope.
On 7 Sep 2011 14:42, "arleybls" <nginx-forum at> wrote:
> Currently Nginx can block IP on application level and thus send a 403
> forbidden message back to the client.
> I wonder if there's a way to block any request at the socket level,
> preferably not even sending a FIN message to the client but simply
> dropping the packet. Right now i'm using iptables but i'm really looking
> to have such feature on nginx itself, and if not supported right on
> current build, how could I have a hook to the socket and control it on a
> home made server module/handler?
> Cheers,
> __Jr
> Posted at Nginx Forum:,214948,214948#msg-214948
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list