I am not setup to do anything in Mina at the moment.

You know how to setup regex patterns in Java?

Its as simple as converting the inetaddress to a string and comparing with
the regex.

If condition is true, close the session.
On Jul 30, 2013 1:17 AM, "Nitin Phuria" <[email protected]> wrote:

> No I am not using any wildcards in blacklist filter of MINA. All the IP
> Addresses are IPV4 type and are individual IPs. Could you pls give me some
> leads on your statement "You could build your own string and pattern based
> blacklist filter for IPV6" so that I can try it.
>
> Thanks And Regards,
> Nitin Phuria
>
> -----Original Message-----
> From: Jon V. [mailto:[email protected]]
> Sent: Saturday, July 27, 2013 12:27 AM
> To: [email protected]; [email protected]
> Subject: Re: Does MINA 2.0.4 supports IPV6
>
> Are you using wildcards in the blacklist filter?  You could build your own
> string and pattern based blacklist filter for IPV6 in under 30 minutes.
>
>
> On Fri, Jul 26, 2013 at 3:10 AM, Nitin Phuria
> <[email protected]>wrote:
>
> > The issue is registered in JIRA see the below link.
> > https://issues.apache.org/jira/browse/DIRMINA-957
> >
> > Thanks And Regards,
> > Nitin Phuria
> >
> > -----Original Message-----
> > From: Emmanuel Lécharny [mailto:[email protected]]
> > Sent: Thursday, July 25, 2013 6:49 PM
> > To: [email protected]
> > Subject: Re: Does MINA 2.0.4 supports IPV6
> >
> > Le 7/25/13 1:47 PM, Nitin Phuria a écrit :
> > > Hello All,
> > >
> > > MINA build in BlacklistFilter does not support IPV6 address. If MINA
> > itself
> > > supports binding to IPV4 and IPV6 why this restriction was kept in
> > > BlacklistFilter.
> >
> > That's a different problem...
> >
> >
> > > I checked the org.apache.mina.filter.firewall.Subnet class
> > > in MINA sources and found that it specifically checks for Inet4Address
> > >
> > > if (!(subnet instanceof Inet4Address))
> > > {
> > >      throw new IllegalArgumentException("Only IPv4 supported");
> > > }
> > >
> > > We are using this filter and now supports only IPV4
> > >
> > > Pls advice.
> >
> > Please fill a JIRA, we are going to look at it.
> >
> > ATM, I suggest you remove this check from the code, and see if it works
> > for you. If so, we could then patch MINA, this is probably the fastest
> > way to solve your issue.
> >
> >
> > --
> > Regards,
> > Cordialement,
> > Emmanuel Lécharny
> > www.iktek.com
> >
> >
> >
>
>

Reply via email to