The instructions for migrating MIAB to a new host include:
sudo ufw reset
sudo ufw allow 22
sudo ufw enable
if I perform these commands and do a backup and then find I want to return my old box to operational mode what commands are run to undo the above three commands?
Does a re-run of sudo mailinabox do it? Does a reboot do it?
Usage: ufw COMMAND
Commands:
enable enables the firewall
disable disables the firewall
default ARG set default policy
logging LEVEL set logging to LEVEL
allow ARGS add allow rule
deny ARGS add deny rule
reject ARGS add reject rule
limit ARGS add limit rule
delete RULE|NUM delete RULE
insert NUM RULE insert RULE at NUM
route RULE add route RULE
route delete RULE|NUM delete route RULE
route insert NUM RULE insert route RULE at NUM
reload reload firewall
reset reset firewall
status show firewall status
status numbered show firewall status as numbered list of RULES
status verbose show verbose firewall status
show ARG show firewall report
version display version information
Application profile commands:
app list list application profiles
app info PROFILE show information on PROFILE
app update PROFILE update PROFILE
app default ARG set default application policy
Alternatively you could probably “repair your setup” by running the installer again on your old box.