---
title: "Enterprise firewall"
url: https://docs.corefinity.com/guides/corestack-enterprise/firewall
type: guide
last_updated: 2026-11-13
feature: enterprise-firewall
---
# Enterprise firewall

Allow an IP address or range to connect to a CoreStack Enterprise environment over SSH.

## Before you start

- You can open the environment: see [Websites and environments](/guides/corestack-enterprise/websites-and-environments).
- You know the public IP address or range to allow: see [Firewall](/guides/sites/access-and-security/firewall) for what is accepted.
- On CoreStack Enterprise the firewall covers SSH only. Visitors to the website are not affected.

## Add an address

1. **Open Firewall**

   Open the environment and choose **Firewall**. The list shows every address that reaches this environment and where it was added: the environment, the website or your organisation.

   _Screenshot: An Enterprise environment's page on the Firewall tab: the Firewall card with Activity and Add an IP address, and the addresses grouped under Environment and Website, each with who added it, its comment, the scope SSH, its expiry and the status Applied._

2. **Enter the address**

   Choose **Add an IP address** and enter one address or a range in **Address or range**, or choose **Use my current IP**.

3. **Choose where it applies**

   **Where it applies** sets how far the address reaches: **This environment**, **Website** or **Company**.

   _Screenshot: The Add an IP address dialog on an Enterprise environment: Use my current IP, the Address or range box, Where it applies with Website chosen from This environment, Website and Company, Scope reading SSH, Expires, Comment, and the buttons Cancel and Add._

4. **Add it**

   Set **Expires** and a **Comment** if you want them, then choose **Add**.

The address reads **Applying**, then **Applied**. Editing and removing an address work as on a site: see [Firewall](/guides/sites/access-and-security/firewall).

## See a website's or the organisation's addresses

| Addresses added for                    | Are listed on                                                               |
| -------------------------------------- | --------------------------------------------------------------------------- |
| Every environment of one website       | The website's page, under **Firewall**.                                     |
| Every environment of your organisation | [Organisation firewall](/guides/organisation/access/organisation-firewall). |

## Automate this

**API:** [Create a firewall entry](https://docs.corefinity.com/api/reference/firewall/create-firewall-entry.md), scope `write`

```bash
curl -X POST https://manage.corefinity.com/api/firewall/entries \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "198.51.100.0/24",
    "comment": "Head office",
    "owner_id": 1204,
    "owner_type": "company",
    "scope": "ssh"
  }'
```

**MCP:** [`corestack_firewall_entry_add`](https://docs.corefinity.com/mcp/tools/corestack_firewall_entry_add.md), scope `write`

```json
{
  "name": "corestack_firewall_entry_add",
  "arguments": {
    "owner": {
      "type": "environment",
      "id": 9120
    },
    "address": "203.0.113.7",
    "comment": "Office"
  }
}
```

**Control Panel:** Managed Websites › your site › Access & security › Firewall ([https://manage.corefinity.com/go/firewall](https://manage.corefinity.com/go/firewall))

## Related

- [SSH keys and access](/guides/corestack-enterprise/ssh-keys-and-access): Add the SSH keys that may log in.
- [Firewall](/guides/sites/access-and-security/firewall): Allow an IP address to reach a site.
- [My IP addresses](/guides/your-account/your-ip-addresses): Allow your own address everywhere you work.
