Generate RouterOS Address Lists based on country code.
Go to file
2024-09-28 21:25:11 -06:00
example.json initial commit 2024-09-28 21:25:11 -06:00
go.mod initial commit 2024-09-28 21:25:11 -06:00
LICENSE Initial commit 2024-09-29 01:23:12 +00:00
main.go initial commit 2024-09-28 21:25:11 -06:00
README.md initial commit 2024-09-28 21:25:11 -06:00

mikrotik-geoipblock

Generate RouterOS Address Lists based on country code.

# Example usage
./mikrotik-geoipblock myAddressList example.json

Createa a config file containing the address lists you want to block

{
    "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"
        }
    ]
}