This is assuming you are using example.com as your domain and you already have DNS pointing to the server you are working on. This is also assuming you know your public IPv4 address and your IPv6 subnet.
First lock down the firewall
sudo ufw allow from any to any