Disable firewall temporarily

Greetings,

To make some tests for a lab configuration, we need to disable the MikroTik RouterOS firewall temporarily, we plan on restoring it afterward, so it would be interesting to keep the firewall rules and configurations as they are now, maybe just switching the whole firewall system to on or off.

Is that something that can be done please?

If yes, how is it achieved? Otherwise, what is the best way to disable the firewall temporarily?

Thank you for your time and help, it is greatly appreciated.

What kind of tests?

If it’s performance tests, then I’m affraid you have to wipe whole firewall config to get rid of connection tracking (which is quite costly operation). There are other options but are more clumsy and might actually not “unleash the power”. I don’t know if disabling all rules would be good enough.
After you’re done with tests, you have to add all the removed rules again. You can export rules (execute /ip firewall export file=savedfirewall.rsc) before removing them and import them afterwards.

If the performance is not that important, then you could introduce a simple firewall rule and push it to the top:

/ip firewall filter
add chain=forward action=accept place-before=0

After you finish with tests, simply remove this rule (or disable it).