Running Uncomplicated Firewall (UFW) on Ubuntu images may cause issues with these rules, so Oracle recommends that you do not enable UFW on your instances. See Ubuntu Instance fails to reboot after enabling Uncomplicated Firewall (UFW) for more information.