Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (29 loc) · 1.08 KB

Installation

Install the Bash script to your system.

Execution

The license key can be provided either as a command line argument using the '-k' switch, or via the /etc/bcs.conf configuration file with the following format:

LICENSE_KEY=YOUR_KEY

To execute the script with and without a configuration file:

  • ./build-country-sets.sh
  • ./build-country-sets.sh -k YOUR_LICENSE_KEY

The command line option takes precedence. Manual execution will create a directory with the following hierarchy in the current working directory:

geoipsets
├── ipset
│   ├── ipv4
│   └── ipv6
└── nftset
    ├── ipv4
    └── ipv6

Environment variables limiting which sets are generated are available. See https://github.com/chr0mag/geoipsets/blob/main/bash/bcs.conf .