Welcome! Log In Create A New Profile

Advanced

block ip/subnet at socket lvl

September 07, 2011 10:41AM
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
Subject Author Posted

block ip/subnet at socket lvl

arleybls September 07, 2011 10:41AM

Re: block ip/subnet at socket lvl

Alfredo Palhares September 09, 2011 05:04PM

Re: block ip/subnet at socket lvl

fbhosted September 09, 2011 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready