---
title: "Configure firewall"
method: POST
path: "/security/firewall"
tags: ["Firewall"]
---

# Configure firewall

`POST /security/firewall`

Configures the firewall rules. This will reconfigure the firewall - make sure to include all rules in the body, not only the rules you want to add.

Available services: AMQP (5672), AMQPS (5671), HTTPS (443), MQTT (8883), MQTTS (1883), STOMP (61614), STOMPS (61613), STREAM (5552), STREAM_SSL (5551)

**Note:** This action is asynchronous. The request will return immediately, the process to configure the firewall runs in the background. Until completed, consequent requests will return 400 Bad Request.

## Request body

- object[]
  - `ip` string, required — A CIDR for which to open the ports for
  - `services` string[] — Which services to open up for in the firewall
  - `ports` integer[] — Which ports to open in the firewall

## Response `200`

Firewall configuration initiated

## Other responses

- `400` — Request already in progress

---

[API](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api.md) · [All operations](https://skmtc.dev/cloudamqp/apis/cloudamqp-instance-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudamqp/cloudamqp-instance-api/revisions/d04a3670170c/schema)
