If you really need to “block” the socket connection establishment you will need 
to use something like iptables or any other firewall. With netty you could just 
close it once you accepted it in channelActive(…).

For iptables see:

https://making.pusher.com/per-ip-rate-limiting-with-iptables/ 
<https://making.pusher.com/per-ip-rate-limiting-with-iptables/>



> On 2. Apr 2018, at 07:35, Pranith Vanaparthi <pranit...@gmail.com> wrote:
> 
> Hi 
> 
> I am trying to block socket connection establishment from a IP by keeping a 
> threshold count for a single IP. I am currently using 
> SimpleChannelInboundHandler for message consumption.
> 
> Can some one help me in finding a reference to achieve this. 
> 
> Thanks in advance !!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to netty+unsubscr...@googlegroups.com 
> <mailto:netty+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/91380e1b-0ea5-40d5-bb37-89e040efbde5%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/netty/91380e1b-0ea5-40d5-bb37-89e040efbde5%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netty+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/97E2EE5E-BDB9-4662-B2D1-ECB29091F2F2%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to