fire-scope
This CLI application is used to retrieve the latest address allocation files provided by each Regional Internet Registry (RIR) and output the IPv4/v6 address blocks corresponding to the specified country code to a text file. It can also retrieve the specified AS number and also output it to a text file.
Features
- Download latest data from multiple RIRs (AFRINIC, LACNIC, RIPE, APNIC, ARIN)
- Up to 10 retries and exponential backoff + random sleep to attempt stable acquisition
- Filter by country code and output unduplicated subnet lists (IPv4 / IPv6)
- Fast download and processing using Tokio
- Output files are automatically generated as IPv4_XX.txt / IPv6_XX.txt (where XX is the country code)
Output format.
- IPv4_XX.txt / IPv6_XX.txt
- XX is an optional country code.
- One subnet is listed per line.
- The first line contains the date and time of execution.
Information Sources
-
When specifying the
-coption, data is retrieved from the following -
When specifying the
-aoption, data is retrieved from the followingwhois.radb.net
Usage
Installation
Example
- Note
- Either
-cor-amust be specified. - If not specified, an error occurs.
- Either
Options
-c: Specify one or more country codes.-a: Specify one or more AS numbers.-h: Display help.-v: Display version.-m: Select the file output mode, eitherappendoroverwrite. \nIf not specified,overwriteis used by default.append: Append modeoverwrite: Overwrite mode
-o: Output the overlapping IP addresses among the IPv4/v6 addresses of the specified country code(s) and AS number(s).- By design, both
-cand-amust be specified.
- By design, both