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
TimRiker
Nov 02, 2018Cirrocumulus
Made some changes, opened a pull request on github. Tested on Ubuntu 18.04 against test boxes running 11.6.0 (v1) and 13.1.0.8 (v2).
- version 0.0.8
- use PHP_EOL for line endings
- convert to ssh2_auth_agent, default to root user (no password in script)
-
pick f5s from F5S environment variable ie:
F5S=a.example.com,b.example.com php geoip_updater.php
-
avoid system() and printf()
-
recommend native php debs, avoid ppa
- default to UTC
- tabs, whitespace, etc
- one ssh connection per f5