In terminal window, as wide as it gets, execute command /system default-configuration print (long lines get truncated so really make terminal windows wide).
The command gives you complete default configuration, so you need to scroll down to get to the firewall part.
If you execute export command in terminal window, you get text output with exact commands that created certain configuration on top of factory defaults. The command descends recursively from starting point, so if you want to create the list of DHCP assignemnts, run commands
/ip dhcp-server lease
export
Command export takes additional parameters, one of interesting ones is file=, if it’s used, it’ll create file with the name specified and is available under /file section of your UI … you can then fetch it to your management computer for permanent storage.
Sure thing. The file, created in previous bullet, can be uploaded to router and then you can execute it by running command /import .