initial commit

This commit is contained in:
2024-09-28 21:25:11 -06:00
parent 02351b75e5
commit c11523c0d5
4 changed files with 146 additions and 1 deletions

View File

@@ -1,3 +1,26 @@
# mikrotik-geoipblock
Generate RouterOS Address Lists based on country code.
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"
}
]
}
```