---
title: "Firewall"
url: https://docs.corefinity.com/guides/sites/access-and-security/firewall
type: guide
last_updated: 2026-11-13
feature: firewall
related:
  - https://docs.corefinity.com/api/reference/firewall/get-company-firewall.md
  - https://docs.corefinity.com/api/reference/firewall/list-company-firewall-activity.md
  - https://docs.corefinity.com/api/reference/firewall/get-own-company-firewall.md
  - https://docs.corefinity.com/api/reference/firewall/get-environment-firewall.md
  - https://docs.corefinity.com/api/reference/firewall/list-environment-firewall-activity.md
  - https://docs.corefinity.com/api/reference/firewall/get-environment-web-access.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_list.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_my_ip_check.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_my_ip_add.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_entry_add.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_entry_update.md
  - https://docs.corefinity.com/mcp/tools/corestack_firewall_entry_remove.md
---
# Firewall

Allow an IP address or range to connect to a site over SSH and to see the site while it is in maintenance mode or behind a password.

## Before you start

- You can open the site in **Managed Websites**. Anyone who can open a site can change its firewall.
- If your organisation requires two-factor authentication, it is on for your account.
- You know the public IP address or range to allow, in an [accepted format](#address-format). The dialog offers your own.

## Add an address

1. **Open Firewall**

   Go to **Managed Websites**, choose the site, then **Firewall** under **Access & security**. Each environment has its own list: check the environment in the site header.

   _Screenshot: A site page on its Production environment with Firewall ringed in the menu: a strip saying your address is not on this environment's firewall, and the Firewall card listing four addresses._

2. **Enter the address**

   Choose **Add an IP address**. Enter one address or a range in **Address or range**, such as `198.51.100.24` or `198.51.100.0/24`, or choose **Use my current IP**.

   _Screenshot: The Add an IP address dialog: Use my current IP, Address or range, Where it applies, Scope, Expires and Comment, with the buttons Cancel and Add._

3. **Choose where it applies**

   Under **Where it applies**, choose **This environment**, **Website** for every environment of the website, or **Company** for every environment of your organisation.

4. **Choose what it opens**

   Under **Scope**, choose what the address may do.

   | Scope               | The address can                                                                            |
   | ------------------- | ------------------------------------------------------------------------------------------ |
   | **SSH and website** | Connect over SSH, skip the site's password protection and see the site in maintenance mode |
   | **SSH only**        | Connect over SSH                                                                           |
   | **Website only**    | Skip the site's password protection and see the site in maintenance mode                   |

5. **Set an expiry and a comment**

   Under **Expires**, keep **No expiry** or choose **1 day**, **30 days**, **90 days** or **365 days**. Use **Comment** to say whose address it is.

6. **Add it**

   Choose **Add**. The address appears in the list as **Applying**, then **Applied** with the time.

   _Screenshot: The Firewall card, grouped by source: the addresses added on this environment, the company's and one user's, each with who added it, its comment, scope, expiry and status._

> **Note:** SSH is open only to addresses on the list. Visitors to your website are not affected.

## Change or remove an address

1. **Open the address's menu**

   Open the **…** menu on the address.

   _Screenshot: The Firewall card with the menu open on the address 192.0.2.77: Edit…, Copy address and Remove…._

2. **Edit or remove it**

   Choose **Edit…** to change the comment, expiry or scope, then **Save changes**. Choose **Remove…** to delete it: enter the address under **Type the address to confirm** and choose **Remove**.

   _Screenshot: The Remove 192.0.2.77? dialog: how many environments lose access, with Show them, the box Type the address to confirm, and the buttons Cancel and Remove._

An address under **Company** or **Website** is changed where it was added: follow **Edit at the company** or **Edit at the website** on its group.

Addresses for every environment of the organisation are on [Organisation firewall](/guides/organisation/access/organisation-firewall), and your own on [My IP addresses](/guides/your-account/your-ip-addresses).

## Address format

An address is one public IPv4 or IPv6 address, such as `198.51.100.24`, or a range written as a network and prefix, such as `198.51.100.0/24`.

| Limit                             | Value                                    |
| --------------------------------- | ---------------------------------------- |
| Addresses in one list             | 200                                      |
| Widest range you can add yourself | `/24` for IPv4, `/48` for IPv6           |
| Wider ranges, up to `/9`          | Reviewed by Corefinity before they apply |
| IPv6 addresses                    | Website access only                      |
| Comment                           | 200 characters                           |

## 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](/guides/sites/access-and-security/ssh-keys): Add a key to log in over SSH.
- [Password protection](/guides/sites/access-and-security/password-protection): Put a login in front of an environment.
- [Organisation firewall](/guides/organisation/access/organisation-firewall): Allow an address on every environment.
