Skip to content

IP2Location country database to MaxMind format convertion for OPNsense

Notifications You must be signed in to change notification settings

drakosha/ip2location

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's simple script to download and convert IP2Location Lite database to MaxMind format. What can be used in OPNsense.

Usage:

You should set IP2L_TOKEN enviroment variable with your IP2Location api token. It can be obtained here after free registration. This script using DB1.LITE database. You can override download url by set IP2L_URL variable.

node ./index.js

It will generate ip2l.zip file in MaxMind format. Output filename can be overridden by setting IP2L_OUT variable. To use this file with OPNsense you should publish it on any webserver and fill the link in Firewall -> Aliases -> GeoIP settings of OPNsense.

For testing and experimental purpose you can use this link

About

IP2Location country database to MaxMind format convertion for OPNsense

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published