Files

37 lines
1.0 KiB
Markdown

# topgeoip
## Installation
topgeoip is included in the [topip](https://git.rznet.fr/tchivert/topip) debian package.
To install it manually:
```bash
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:
```bash
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
```bash
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](https://git.rznet.fr/tchivert/topip/src/branch/main/LICENSE) file for more information.