Move the firewall script to a template file