[SR-Users] GeoIP Module and IPv6 seems not to match

Sergey Okhapkin sos at sokhapkin.dyndns.org
Wed Jan 28 01:25:21 CET 2015


The pull request with the patch submitted.

On Tuesday 27 January 2015 07:59:04 Sergey Okhapkin wrote:
> Yes, geoip2 module will handle v4 and v6 addresses at the same time.
> 
> I'm learning now how to use github and will issue pull request today.
> 
> On Tuesday 27 January 2015 12:54:59 Jöran Vinzens wrote:
> > Hi, thanks for that info.
> > 
> > Will there be support to handle V4 and V6 at the same time? So far there
> > is
> > the possibility just for one database in the module to configure.
> > 
> > BR
> > Jöran
> > 
> > On Tue, Jan 27, 2015 at 10:26 AM, Daniel-Constantin Mierla <
> > 
> > miconda at gmail.com> wrote:
> > >  Hello,
> > > 
> > > the geoip module is using the old database format (API) that is not
> > > supporting ipv6, there is a new module in the work that uses the new
> > > geoip
> > > database format/API.
> > > 
> > > I already got some code and I asked the developer to make a github pull
> > > request. It should show up soon.
> > > 
> > > Cheers,
> > > Daniel
> > > 
> > > 
> > > On 27/01/15 10:18, Jöran Vinzens wrote:
> > > 
> > > Hi All,
> > > 
> > >  i'm trying to get GEO IP Location for an IPv6 Setup.
> > > 
> > > We downloaded the GeoLiteCityv6.dat from maxmind and referred to it in
> > > modparams of geoip.
> > > 
> > >  If i now place a call from an V6 User and do something like:
> > >  
> > >  if(geoip_match("$si", "src")) {
> > >  
> > >                 xlog("L_NOTICE", "Call comes from IP '$si'
> > >                 ($gip(src=>cc))
> > > 
> > > CID=$ci F=$fU URI=$ru\n");
> > > 
> > >                 append_hf("X-GeoIP: $gip(src=>cc)\r\n");
> > > 
> > > }
> > > 
> > >  it will not match for any reason
> > >  
> > >  if i xlog the src IP it look like: "Src IP = 2A01:abc:321:123:0:0:0:2"
> > > 
> > > so it should match to the GEO IP Database.
> > > 
> > >  In CSV version of geo IP database there is an entry for my IP Address.
> > >  
> > >  Since the Module is not that verbose, i cannot tell whether the entry
> > > 
> > > exists or not. Just the result in my "if" is False.
> > > 
> > >  Has anybody experience with GEOIP and IPv6?
> > >  
> > >  thanks
> > >  
> > >  Best regards,
> > > 
> > > Jöran
> > > 
> > > 
> > > _______________________________________________
> > > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> > > listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mai
> > > l
> > > man/listinfo/sr-users
> > > 
> > > 
> > > --
> > > Daniel-Constantin Mierlahttp://twitter.com/#!/miconda -
> > > http://www.linkedin.com/in/miconda
> > > 
> > > 
> > > _______________________________________________
> > > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > > sr-users at lists.sip-router.org
> > > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list