Generate RouterOS Address Lists based on data provided by Regional Internet Registries (RIR's)
example.json | ||
go.mod | ||
LICENSE | ||
main.go | ||
README.md |
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"
}
]
}