Thanks Norman !!

I am able to achieve with below approach.

Also is there a way to identify the source of Netty connection i.e what I
mean is there a way to identify from where the socket connections are
coming from. If there is a way in Netty I can set this at client while
establishment of connection. I can get the same at server at channel active
and verify whether it is a valid source.

Here I am trying to identify client level issue/from a external source in
case of multiple channel connects

On Thu, Apr 5, 2018, 11:33 AM 'Norman Maurer' via Netty discussions <
[email protected]> wrote:

> 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/
>
>
>
> On 2. Apr 2018, at 07:35, 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].
> 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.
>
>
> --
> 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/97E2EE5E-BDB9-4662-B2D1-ECB29091F2F2%40googlemail.com
> <https://groups.google.com/d/msgid/netty/97E2EE5E-BDB9-4662-B2D1-ECB29091F2F2%40googlemail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit 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/CAJr%2B7TH1n%3Dc4f826T6cMhgi8LkMi2jgFpReFnshVh9qsuq3zoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to