If you really want to block it before its accepted you will need to use a firewall like iptables. If you just want to close new connections after a threshold you can override channelActive(…) and do it there.
Bye Norman > On 26. Mar 2018, at 17:25, Pranith Vanaparthi <[email protected]> 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/netty/CAJr%2B7TGOS2bTHbBa4srKoo-w39yd8E-CkpX1PuPj18AMnHzRTw%40mail.gmail.com > > <https://groups.google.com/d/msgid/netty/CAJr%2B7TGOS2bTHbBa4srKoo-w39yd8E-CkpX1PuPj18AMnHzRTw%40mail.gmail.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netty/A75C6A9A-10C1-4C8E-BA6C-B7C8A886E25C%40googlemail.com. For more options, visit https://groups.google.com/d/optout.
