Files
..
2025-05-21 00:16:41 +02:00
2025-05-21 00:16:41 +02:00
2025-05-21 00:28:57 +02:00
2025-05-21 00:16:41 +02:00

topgeoip

Installation

topgeoip is included in the topip debian package.

To install it manually:

wget https://git.rznet.fr/tchivert/topip/releases/download/latest/topgeoip-<os>-<arch> -O /usr/local/bin/topgeoip
chmod +x /usr/local/bin/topgeoip

Exemple for an amd64 linux machine:

wget https://git.rznet.fr/tchivert/topip/releases/download/latest/topgeoip-linux-amd64 -O /usr/local/bin/topgeoip
chmod +x /usr/local/bin/topgeoip

Usage

Usage:
  -4    IPv4 only
  -6    IPv6 only
  -a    Path to the GeoIP ASN DB (default "/var/lib/GeoIP/GeoLite2-ASN.mmdb")
  -c    Path to the GeoIP City DB (default "/var/lib/GeoIP/GeoLite2-City.mmdb")
  -d    Debug mode
  -l    Path to the log files (reads from stdin by default) (default "/dev/stdin")
  -t    Number of top entries to show (default 10)

License

This project is licensed under the MIT License. See the LICENSE file for more information.