2024-10-12 01:37:59 +00:00
# routeros-geoip
2024-09-29 01:23:12 +00:00
2024-10-12 01:37:59 +00:00
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.
2024-09-29 03:25:11 +00:00
2024-10-20 00:40:27 +00:00
### Create Configuration
2024-09-29 03:25:11 +00:00
2024-10-20 00:40:27 +00:00
Create a json config file containing the address lists you want to block and a URL for source information. Below is example.json
2024-09-29 03:25:11 +00:00
```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"
}
]
}
```
2024-10-20 00:40:27 +00:00
### Usage
```sh
# Example usage
./routeros-geoip myAddressList example.json
```