Forum Discussion

hoolio's avatar
hoolio
Icon for Cirrostratus rankCirrostratus
Oct 06, 2009

Using GTM GeoIP database from an LTM iRule?

It looks like in GTM, you can use the whereis command to check the client IP continent and country. But it looks like the whereis command can only be used in GTM-specific events (DNS_REQUEST/DNS_RESPONSE).

 

 

Does anyone know if there is a way to access the GTM GeoIP database info from an LTM iRule event? If not, are there plans to add this functionality? It would be a nice addition to LTM functionality if GTM is licensed (or maybe even not if GTM is licensed...).

 

 

I'll open a case for this RFE, but figured I'd check if anyone else knows more first.

 

 

 

Lacking that, bheltne posted a great solution for importing the free MaxMind GeoIP data into an external datagroup as detailed in this post:

 

 

Message Reject based on source IP (GeoIP)

 

http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=21847&view=topic

 

 

Thanks,

 

Aaron
  • golden_53157's avatar
    golden_53157
    Historic F5 Account
    Hello,

     

     

    Currently the whereis command is only available in GTM as you mentioned. It will be added to LTM iRules in an upcoming feature release.

     

     

    Thanks.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi Lisa,

     

     

    Thanks for the info! It looks like it does in fact work on 10.1 beta. I didn't think to check if it had already been added.

     

     

    Aaron