- Connects to a Meraki network
- Evaluates the current L3 firewall rules
- Removes duplicate rules
- Uploads a clean, non-duplicated set up rules.
No doubt - The Meraki dashboard is great. However, it is possible to create duplicate L3 firewall rules. Overtime, this can result in an unnecessary amount of unused rules. This script compares the current set of rules, minus the comments, and uploads a clean new set of L3 firewall rules without the duplicates.
This script requires a Python environment and the libraries included in the requirements.txt file.
Import requirements file: pip install -r requirements.txt
All the API keys are stored in a config.ini file using configparser. Your config.ini file should look like this:
$ python.exe rule_cleanup.py
Super easy! You can find the instructions in this Meraki doc.
Also super easy! You can find the instructions in the Meraki API documentation.
This script only evaluates the existing layer 3 firewall rules and removes any duplicated rules. Here are a few examples of scripts that will allow you to programmatically add layer 3 firewall rules.
- Using a Docker container by Oleksii Borisenko - @oborys
- GVE DevNet Meraki MX Firewall Provisioner by Jorge Banegas
- Add Meraki MX L3 Firewall Rule to Networks by Gerardo Chaves - @ggchaves
None
If you have questions, concerns, bug reports, etc., please create an issue against this repository.
This project was written and is maintained by the following individuals:
- Aaron Davis aarodavi@cisco.com