Auto updates GeoIP database on Big IP.
Problem this snippet solves: Securely, auto updates multiple Big IP's, geoip database.
Tested on Version 12.1.2, but should work for others. How to use this snippet: Must have PHP installed (t...
Updated Jun 06, 2023
Version 2.0Chris_Gray_2395
Nimbostratus
Joined May 05, 2019
Joe_M
Aug 11, 2017Nimbostratus
Yes, it did work! However, it did give me some notices.
PHP Notice: Undefined offset: 0 in /home/xxxx/geoip_updater.php on line 135
Notice: Undefined offset: 0 in /home/xxxx/geoip_updater.php on line 135
PHP Notice: Undefined offset: 0 in /home/xxxx/geoip_updater.php on line 169
Notice: Undefined offset: 0 in /home/xxxx/geoip_updater.php on line 169
I think that was because I used IP only and not an FQDN. So, no big deal. That's a good point about the file being corrupt or incomplete. But I would think that would be a point towards forcing the md5 check. Which I personally would be OK with. Since the 2 URLs are almost identical, except the 2nd one has ".md5" at the end, you could just infer the 2nd URL from the 1st URL. Then you wouldn't need the MD5 URL parameter. I don't really do any coding and about the most I do is some bash scripting or simple iRules so, I am not exactly sure what would be a good way to do the password or local files. But yeah, just adding another parameter to the command seems good to me.