UFW rules were correct, removed debug
Added sudo to package install list.
Added --force to UFW commands so they no longer prompt the user for confirmation