Skip to main content

Manage your firewall rules

info

Crusoe Cloud is currently in private beta. If you do not currently have access, please request access to continue.

Creating a new firewall rule

Use the networking firewall-rules create command to create a firewall rule. As an example, you can create a firewall rule to allow HTTPS serving:

crusoe networking vpc-firewall-rules create \
--name allow-https \
--action ALLOW \
--destination-ports 443 \
--destinations 172.27.0.12 \
--protocols tcp,udp \
--source-ports * \
--sources 0.0.0.0/0 \
--vpc-network-id NETWORK_ID

Viewing all existing firewall rules

Use the networking vpc-firewall-rules list command to list all existing firewall rules.

crusoe networking vpc-firewall-rules list

Update an existing firewall rule.

Use the networking vpc-firewall-rules update RULE_ID command to modify an existing firewall rule. Specify the resource ID of the rule you wish to update along with the fields to be modified.

crusoe networking vpc-firewall-rules update RULE_ID \
--name allow-https-v2 \
--destination-ports 443 \
--destinations 172.27.1.12 \
--protocols TCP,UDP \
--vpc-network-id NETWORK_ID

Deleting a firewall rule

info

Warning: deleting a firewall rule is a permanant action that will require re-creation of the rule to recover.

Use the networking firewall-rules delete command to delete a specific firewall rule:

crusoe networking vpc-firewall-rules delete --name RULE_NAME

If you are having issues creating or deleting firewall rules, please contact support.