routeros-geoip/README.md

27 lines
607 B
Markdown
Raw Normal View History

2024-09-29 01:23:12 +00:00
# mikrotik-geoipblock
2024-09-29 03:25:11 +00:00
Generate RouterOS Address Lists based on country code.
```sh
# Example usage
./mikrotik-geoipblock myAddressList example.json
```
Createa a config file containing the address lists you want to block
```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"
}
]
}
```