Giter Club home page Giter Club logo

nft-rulesets's Introduction

nft-rulesets

License: GPL v3

Purpose

Repository to store a script and all details that downloads and prepare GeoIP database to be used with nftables rulesets I found an awesome script on the WireFalls Github. ๐Ÿ‘‹

the idea was brilliant.:+1:

Because we don't need any other script interpreter than bash.

But this script was using the GeoIP database from db-ip.com. And I wasn't happy for that for several reasons.

  1. I already use the free Maxmind GeoIP database with nginx
  2. I prefer the Maxmind GeoIP database. I believe that it's one of the most accurate one, and all subnets are written in CIDR mode, and I personnally think it's clearer, this way

Description

What this script is doing ? ๐Ÿง

  1. Checks that all the programs that the script use can be accessed.
  2. Create a small RamDrive to store its temporaries files to avoid storing data on HardDisks this increase spead.
  3. Downloads the Maxmind Database GeoLite2-Country in csv format for IPv4 and IPv6. and checks that the SHA256 checksumms are correct.
  4. Correlates the data to create files for selected countries. Selected countries have to be mentionned according to their ISO code. See this webpage for further details.
  5. Create an archive files of the selected countries and store them on disk.
  6. All steps are well logged and described.

Future evolutions. โš™๏ธ

The script is at his first stage. It hasn't reached a number to be considered as stable enough.

In a near future I plan to add some new features, like the following ones :

  • Taking in consideration the parameters defined in a configuration file.
  • Taking in consideration command line arguments. โœ…
  • Setup the nft rules. โœ…
  • And other ideas that will come when the script evolves.

What do I expect from you โ”

  • Test this script.
  • Comment, improve it
  • Share your ideas.
  • Fork this repository
  • Add a Star to this repository

Thanks for your help.:pray:

nft-rulesets's People

Contributors

jimbenna avatar

Watchers

 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.