Vultr DocsLatest Content


How to Enable a Vultr Firewall Group on a Vultr VX1™ Cloud Compute Instance

Updated on 21 November, 2025

Apply a Vultr Firewall group to secure a VX1™ Cloud Compute instance via Portal or API.


Vultr Firewall groups let you create rules that control and filter incoming network traffic to your instance. These rules define which ports, protocols, and services you allow or block, improving the security of your Vultr VX1™ Cloud Compute instance.

Follow this guide to enable a Vultr Firewall group on a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.

  • Vultr Customer Portal
  • Vultr API
  1. Navigate to Products and click Compute.
  2. Click your target Vultr VX1™ Cloud Compute instance to open its management page.
  3. Navigate to the Settings tab.
  4. Click Firewall on the left navigation menu.
  5. Open the Firewall drop-down menu and select the firewall group you want to apply.
  6. Click Update Firewall Group to enable the firewall group on the instance.
  1. Send a GET request to the List Instances endpoint and note your target instance's ID.

    console
    $ curl "https://api.vultr.com/v2/instances" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a GET request to the List Firewall Groups endpoint and note the ID of the firewall group you want to apply.

    console
    $ curl "https://api.vultr.com/v2/firewalls" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a PATCH request to the Update Instance endpoint to attach a firewall group to the instance.

    console
    $ curl "https://api.vultr.com/v2/instances/{instance-id}" \
      -X PATCH \
      -H "Authorization: Bearer ${VULTR_API_KEY}" \
      -H "Content-Type: application/json" \
      --data '{
        "firewall_group_id" : "<firewall-id>"
      }'
    

    If successful, you receive a 200 HTTP response.

Comments