Debian 安裝
apt install geoip-bin geoip-database
Alpine 安裝
apk add geoip libmaxminddb
使用
geoiplookup 8.8.8.8
相關參考資料
https://dev.maxmind.com/geoip/geolite2-free-geolocation-data?lang=en
https://dev.maxmind.com/geoip/release-notes/2022#geoip-legacy-databases-have-been-retired?lang=en
IP轉換 32-bit-integer-into-ip
$ip = $bit32>>24,"." + $bit32<<8>>24,".",$bit32<<16>>24,".",$bit32<<24>>24;
其他相關
https://www.miyuru.lk/geoiplegacy
沒有留言:
張貼留言