poplameet.blogg.se

Geoip maxmind
Geoip maxmind












geoip maxmind
  1. Geoip maxmind install#
  2. Geoip maxmind mod#
geoip maxmind

text (Convert data to plaintext CIDR format) Notice v2rayGeoIPDat (Convert data to V2Ray GeoIP dat format) test (Convert specific CIDR to other formats (for test only)) cutter (Remove data from previous steps) private (Convert LAN and private network CIDR to other formats) text (Convert plaintext IP and CIDR to other formats) maxmindGeoLite2Countr圜SV (Convert MaxMind GeoLite2 country CSV data to other formats) v2rayGeoIPDat (Convert V2Ray GeoIP dat to other formats) Path to the config file (default "config.json ")

geoip maxmind

Geoip maxmind install#

You can run go install -v to install the CLI directly.

  • See config-example.json for more configuration options.
  • The generated files are located at output directory by default.
  • c /path/to/your/own/config/file.json to specify your own config file. will use config.json in current directory as the default config file, or use go run.
  • If input format maxmindGeoLite2Countr圜SV is specified in config file, you must first download GeoLite2-Country-CSV.zip from MaxMind, then unzip it to geolite2 directory.
  • Edit config file config.json by referencing the example configuration options in file config-example.json.
  • geoip -c config.json 2 00:26:12 v2rayGeoIPDat geoip.dat -> output/dat 2 00:26:12 v2rayGeoIPDat geoip-only-cn-private.dat -> output/dat 2 00:26:12 v2rayGeoIPDat cn.

    Geoip maxmind mod#

  • Install project dependencies: go mod download /geoip: -c string Path to the config file (default ' config.json ') -l List all available input and output formats.
  • Navigate to project root directory: cd geoip.
  • What the CLI does is to aggregate all input format data, then convert them to output format and write them to GeoIP files by using the options in the config file. The input is the data source and its input format, whereas the output is the destination of the converted data and its output format. These two concepts are notable: input and output. It also provides a command line interface(CLI) for users to customize their own GeoIP files. This project automatically weekly releases GeoIP files for routing purpose in Project V.














    Geoip maxmind