In the past using iptables was common as the main way of firewalling an instance. In Civo we have a firewall built-in ready for you to use. Or you can still run a firewall inside the machine, using Ubuntu's easy-to-configure UFW.

Using Civo's firewalls

The first step is to click on Firewalls in the left navigation of your logged in account.

This instruction tells you that by default the system firewall is an "allow anything in" type of firewall. If you create a new firewall by clicking the "+Create firewall" button, you'll then get a popup to enter a name for the new firewall:

After typing a name and clicking "Create", it will create the firewall and list it along with two buttons. The first button lets you manage the rules for this firewall, the second one deletes it.

You should then click on the rules button and you can complete rules and click the "+" button to add them.

After that you can now choose this firewall when creating a new instance or you can click to view an instance and change the firewall from there.