Cleanup script and add the settings of firewall rules