Geoip
De Linuxmemo.
(Différences entre les versions)
(→Options non documentée) |
|||
(10 versions intermédiaires masquées) | |||
Ligne 1 : | Ligne 1 : | ||
[[Catégorie:Commandes]] | [[Catégorie:Commandes]] | ||
+ | [[Catégorie:Securite-outils]] | ||
+ | geoiplookup - look up country using IP Address or hostname | ||
+ | ==Install== | ||
+ | Paquet Ubuntu '''geoip-bin''' | ||
/usr/bin/geoiplookup | /usr/bin/geoiplookup | ||
/usr/bin/geoiplookup6 | /usr/bin/geoiplookup6 | ||
/usr/bin/geoipupdate | /usr/bin/geoipupdate | ||
+ | ==Database== | ||
+ | Paquet Ubuntu '''geoip-database''' | ||
+ | /usr/share/GeoIP/* | ||
+ | Y stocker les bases supplémentaires... | ||
+ | La base GeoLiteCity n'est pas utilisée par défaut, il faut l'appeler: | ||
+ | geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat xx.xx.xx.xx | ||
+ | ==Option non documentée== | ||
+ | rang ip | ||
+ | geoiplookup -i xx.xx.xx.xx | ||
+ | |||
+ | *Outil en Perl | ||
http://www.spamcannibal.org/docs/Geo-IP-PurePerl.html | http://www.spamcannibal.org/docs/Geo-IP-PurePerl.html | ||
+ | *Free db | ||
http://www.maxmind.com/download/geoip/database/ | http://www.maxmind.com/download/geoip/database/ |
Version actuelle en date du 17 janvier 2014 à 22:44
geoiplookup - look up country using IP Address or hostname
[modifier] Install
Paquet Ubuntu geoip-bin
/usr/bin/geoiplookup /usr/bin/geoiplookup6 /usr/bin/geoipupdate
[modifier] Database
Paquet Ubuntu geoip-database
/usr/share/GeoIP/*
Y stocker les bases supplémentaires...
La base GeoLiteCity n'est pas utilisée par défaut, il faut l'appeler:
geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat xx.xx.xx.xx
[modifier] Option non documentée
rang ip
geoiplookup -i xx.xx.xx.xx
- Outil en Perl
http://www.spamcannibal.org/docs/Geo-IP-PurePerl.html
- Free db