CorefinityCorefinityDocs
Open the Control PanelControl Panel
Firewall · 4 of 13

corestack_firewall_entry_add

Add a firewall address.

Scope writeRuns as a taskNo secrets returned
On this page

When to use it

Add an IPv4 or IPv6 address or a range up to /24 (IPv6 /48) at an environment, a website, your company or yourself, for SSH, the website, or both. Long-running: answers with a task that completes once every environment has applied it.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_firewall_entry_add with owner {"type":"environment","id":9120}, address 203.0.113.7, comment Office. (Add a firewall address.) Tell me what it returned.

Inputs

addressstringRequired

An IPv4 or IPv6 address, or a CIDR range (e.g. 203.0.113.7 or 203.0.113.0/24). Up to 64 characters.

commentstring

A note shown beside the address (at most 200 characters).

expires_in_daysinteger

Remove the address after 1, 30, 90 or 365 days. Leave it out for no expiry.

13090365
ownerobjectRequired

{type, id}: environment (its environment.id), website, company, or user (your own id)

Fields
idintegerRequired

At least 1.

typestringRequired
environmentwebsitecompanyuser
scopestring

both (default), ssh or web

bothsshweb

Example call

tools/call
{
  "name": "corestack_firewall_entry_add",
  "arguments": {
    "owner": {
      "type": "environment",
      "id": 9120
    },
    "address": "203.0.113.7",
    "comment": "Office"
  }
}

If it is refused

ReasonWhat to do
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
switched_offThe firewall is not available for this object yet.
firewall_approval_requiredWider than /24 (IPv6 /48) — send it with corestack_firewall_range_request.
firewall_width_refused/8 or wider, never accepted.
firewall_address_refusedA private, reserved or shared provider range.
firewall_cap_exceededOver the limit of this level or of an environment it reaches.
firewall_duplicateAlready on this list.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT