Socket connection establishment blocking

25 views
Skip to first unread message

Pranith Vanaparthi

unread,
Mar 26, 2018, 1:14:22 PM3/26/18
to ne...@googlegroups.com
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 !!

Norman Maurer

unread,
Mar 26, 2018, 1:15:33 PM3/26/18
to ne...@googlegroups.com
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


--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/CAJr%2B7TGOS2bTHbBa4srKoo-w39yd8E-CkpX1PuPj18AMnHzRTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages