Git Product home page Git Product logo

geoip2-csv-converter's Introduction

GeoIP2 CSV Format Converter

This is a simple utility for converting the MaxMind GeoIP2 and GeoLite2 CSVs to different formats for representing IP addresses such as IP ranges or integer ranges.

Compiled binaries for Linux/x86_64, Windows, and Mac OS X can be downloaded from the GitHub releases page.

Usage

Required:

  • -block-file=[FILENAME] - The name of the block CSV file to use as input.
  • -output-file=[FILENAME] - The file name to the output CSV

In addition, at least one of these is required:

  • -include-cidr - Include the network in CIDR format
  • -include-range - Include the IP range of the network in string format
  • -include-integer-range - Include the IP range of the network in integer format
  • -include-hex-range - Include the IP range of the network in hexadecimal format

Output

CIDR (-include-cidr)

This will include the network in CIDR notation in the network column as it is in the original CSV.

Range (-include-range)

This adds network_start_ip and network_last_ip columns. These are string representations of the first and last IP address in the network.

Integer Range (-include-integer-range)

This adds network_start_integer and network_last_integer columns. These are integer representations of the first and last IP address in the network.

Hex Range (-include-hex-range)

This adds network_start_hex and network_last_hex columns. These are hexadecimal representations of the first and last IP address in the network.

Copyright and License

This software is Copyright (c) 2014 - 2022 by MaxMind, Inc.

This is free software, licensed under the Apache License, Version 2.0.

geoip2-csv-converter's People

Contributors

oschwald avatar horgh avatar dependabot[bot] avatar dependabot-preview[bot] avatar faktas2 avatar andyjack avatar wesrice avatar autarch avatar aktasfatih avatar shadromani avatar al-ex-and-er avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.