Generate RouterOS Address Lists based on data provided by Regional Internet Registries (RIR's)
Go to file
2024-10-19 18:40:27 -06:00
example.json initial commit 2024-09-28 21:25:11 -06:00
go.mod fix typo, update readme and go module name 2024-10-11 19:37:59 -06:00
LICENSE Initial commit 2024-09-29 01:23:12 +00:00
main.go fix typo, update readme and go module name 2024-10-11 19:37:59 -06:00
README.md Rewrite readme to be more clear on configuration and usage 2024-10-19 18:40:27 -06:00

routeros-geoip

Generate RouterOS Address Lists based on country code. This can be used for creating up to date geo-ip blocking lists which can be loaded into RouterOS.

Create Configuration

Create a json config file containing the address lists you want to block and a URL for source information. Below is example.json

{
    "countries": [
        {
            "name": "CANADA",
            "url": "https://raw.githubusercontent.com/herrbischoff/country-ip-blocks/refs/heads/master/ipv4/ca.cidr"
        },
        {
            "name": "AUSTRALIA",
            "url": "https://raw.githubusercontent.com/herrbischoff/country-ip-blocks/refs/heads/master/ipv4/au.cidr"
        }
    ]
}

Usage

# Example usage
./routeros-geoip myAddressList example.json