disable Ubuntu default firewall on Oracle Cloud

sudo iptables -F
sudo netfilter-persistent save
  • iptables -F: Flush (remove all) iptables rules
  • netfilter-persistent save: Save empty ruleset to disk so it will be reloaded on reboot.