Forum Discussion

Marvin's avatar
Marvin
Icon for Cirrocumulus rankCirrocumulus
Feb 24, 2025

Geolocation database

I am planning to update the geoip database on a F5 system but I am not sure if there is currently a Edge or Pulse database, how could i identify this?

 

Will attempt to lookup ip '8.8.8.8'
No database specified.
opening database in /shared/GeoIP/v2/F5GeoIP.dat
size of geoip database = 247551879, segments = 94282792, version = Copyright (c) F5 Networks Inc, All Rights Reserved GEOIP2 v1, 20221129
geoip_seek = 00e10175
geoip record ip = 8.8.8.8
country_code = US
country_name = United States
region_name = California
continent_code = NA
Scope = 19

 

total 432M
-rw-r--r--. 1 root root     237M Nov 29  2022 F5GeoIPRegion2v2.dat
-rw-r--r--. 1 root root     4.8M Nov 29  2022 F5GeoIPISPv2.dat
-rw-r--r--. 1 root root     191M Nov 29  2022 F5GeoIPOrgv2.dat
lrwxrwxrwx. 1 root webusers   33 Dec  6  2022 F5GeoIPISP.dat -> /shared/GeoIP/v2/F5GeoIPISPv2.dat
lrwxrwxrwx. 1 root webusers   37 Dec  6  2022 F5GeoIPv6.dat -> /shared/GeoIP/v2/F5GeoIPRegion2v2.dat
lrwxrwxrwx. 1 root webusers   37 Dec  6  2022 F5GeoIP.dat -> /shared/GeoIP/v2/F5GeoIPRegion2v2.dat
lrwxrwxrwx. 1 root webusers   33 Dec  6  2022 F5GeoIPOrg.dat -> /shared/GeoIP/v2/F5GeoIPOrgv2.dat

  • Unfortunately, I couldn't find a definitive way of determining whether you have an Edge or Pulse geolocation database installed after the fact.

     

    However, when you initially download the geolocation zip file from F5, within the zip file there is a "README.txt" which will tell you if you downloaded the Pulse database (states it on the first line)

    Example - README.txt (within ip-geolocation-v2-2.0.0-20250217.153.0.zip)

    The contents of this zip file contains the newer geolocation database i.e pulse.
    Refer to KB article for more information - https://support.f5.com/csp/article/K78974041
    
    <OMITTED FOR BREVITY>

     

    On the chance that the geolocation zip file still exists in the /shared/tmp directory of the BIG-IP when it was initially uploaded, you can try the following:

     

    1. Verify the latest geolocation database file that was installed

    [root@BIGIP-2:Standby:In Sync] tmp # rpm -qa --dbpath /shared/lib/rpm/
    geoip-data-v2-ISP-2.0.0-20250217.153.0.i686
    geoip-data-v2-Region2-2.0.0-20250217.153.0.i686
    geoip-data-v2-Org-2.0.0-20250217.153.0.i686

     

    2. See if you have a matching zip file in the /shared/tmp directory

    [root@BIGIP-2:Standby:In Sync] tmp # ls -l | grep geolocation
    -rw-r--r--. 1 root   root   249336724 Feb 24 16:58 ip-geolocation-v2-2.0.0-20250217.153.0.zip

     

    3. Display the contents of the README.txt file within the zip file (and see if it mentions "pulse"). If it does then you know you have the Pulse database installed.

    [root@BIGIP-2:Standby:In Sync] tmp # unzip -p ip-geolocation-v2-2.0.0-20250217.153.0.zip README.txt
    The contents of this zip file contains the newer geolocation database i.e pulse.
    Refer to KB article for more information - https://support.f5.com/csp/article/K78974041
    
    To download and install updates to the IP geolocation database:
    
    1. Log in to the F5 Networks customer web site at https://downloads.f5.com.
    2. Click Find a Download.
    3. In the F5 Product Family column, find BIG-IP, and then in the Product Line
       column, click either BIG-IP v12.x/Virtual Edition, BIG-IP v11.x/Virtual Edition,
       or BIG-IP v10.x/Virtual Edition.
    4. From the drop down list above the table, select a version.
    5. In the Name column, click GeolocationUpdates.
    6. Click I Accept to accept the license.
    7. In the Filename column, click the name of the most recent zip file.
    8. In the Ready to Download table, click a download method.
    9. In the dialog box, click OK.
    10. Select the directory in which you want to save the zip file.
    11. Unzip the file, to save the RPM files on the system.
    12. Install and load one of the RPM files using the following command sequence.
        Note that the path and file name are case-sensitive.
    
        geoip_update_data -f </path to RPM file and file name>
        The system installs and loads the specified database file.
    
    13. Repeat step 12 for each of the other RPM files that you saved to the system.
        The system installs and loads the specified database file.
    
    For more information, see the TMOS® Management Guide for BIG-IP® Systems.