Hello Forum,
I’m a brand new MikroTik administrator. I come from the world of Cisco but my new job is running MikroTik, so I’m doing my best to learn. We’ve got about 60+ sites running at least 1 MikroTik (and it some cases multiples) router. One of the big problems this place has is the standardization of firewall rules. What I’d love to be able to to is take a set of rules from 1 of the sites and copy/paste that set of rules to all my other sites… while not breaking anything. Is there an easier way than manually going through all 60+ router configs and adding each rule line by line?
Yeah, I’d love to be able to script stuff. AAMOF I’ve posted in another form trying to find a good tutorial for scripting the mikrotik. I don’t even know where to start. I’ve looked at the MikroTik documentation which I’m not finding helpful. I need an entry level “how to” on MikroTik scripting. Everything that I’m finding on Scripting is WAY over my head. If you’ve got a good youtube tutorial that you can point me to, I’d gladly take a good at it.
First make ready one router with all the proper rules
Then export to file: ip firewall export file=name
And download the file (name.src) to local computer
Edit the exported and downloaded file by adding one line at the top: /ip firewall filter remove [/ip firewall filter find]
Upload the edited file to new router and import it: /import name.src
This should delete all old firewall rules and put in the rules from first router.
Not tested by me, must be tested with your firewall rules and probably only used on site and with caution!
Also possible to skip the deleting of old firewall, and just add your new ones at the bottom of old firewall. Then manual edit to place the new rules in among old rules and delete duplicates.