> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aion.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Create and Manage Firewalls

> Create a firewall for your project and add ingress/egress rules to control network access for your instances.

#### Step 1: Open the Firewall page

In the left sidebar, navigate to `Management → Firewall`. Firewalls help protect your instances by controlling what traffic is allowed **inbound (Ingress)** and **outbound (Egress)**.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/gifs/firewall-nav.gif?s=7b9a8f25bfc3f0bce532538387cbd385" width="500" data-path="gifs/firewall-nav.gif" />

#### Step 2: Create a new Firewall

Click the green `Create Firewall +` button (top-right).

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-0.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=9e94c9bf1e30a96561928a47ed6b0140" width="500" data-path="images/screens/firewall-0.png" />

In the dialog:

1. Enter a `Firewall Name` (example: `myfirewall`).
2. (Optional) Add a `Description` to document the purpose.
3. Click `Save Changes`.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-1.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=f145415fd8cc985ee3a480c7788fce19" width="500" data-path="images/screens/firewall-1.png" />

#### Step 3: Verify the Firewall is created

After saving, your firewall appears in the Firewall list with:

* `Created At`
* `Name`
* `Description`
* `Rules` count
* `Status`

#### Step 4: Open the Firewall to manage rules

Click the firewall name from the list (example: `myfirewall`) to open its rules page.

#### Step 5: Add a Firewall Rule (Ingress or Egress)

Click the green `Create Rule +` button.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-2.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=e3cfc907cd86b2bb3f2a18441731eaf7" width="500" data-path="images/screens/firewall-2.png" />

Fill in the rule fields:

* `Description` (optional): e.g., “Allow HTTPS”
* `Protocol`: e.g., `TCP`
* `Port`: e.g., `443`
* `Source`: CIDR range allowed (example: `0.0.0.0/0` for public internet, or a restricted range like `203.0.113.10/32`)
* `Traffic`: choose `Ingress` (incoming) or `Egress` (outgoing)

Click `Save Changes` to apply the rule.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-3.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=cfab13d666d1157ff53c8efda1c0393a" width="500" data-path="images/screens/firewall-3.png" />

#### Step 6: Confirm rules appear in the rules list

Once saved, rules show up in the table with:

* `Protocol`
* `Port`
* `Source`
* `Traffic` (Ingress/Egress)

  <img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-4.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=87ad5c313be21a19847facce48f3311f" width="500" data-path="images/screens/firewall-4.png" />

#### Optional: Delete a rule

> `Warning:` Deleting a rule is permanent and cannot be undone.

1. In the firewall rules table, click the `Delete` (trash) icon on the rule.
2. Confirm deletion when prompted.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-5.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=0b25b6b963c0f707348dd565e2ef6480" width="500" data-path="images/screens/firewall-5.png" />

#### Optional: Delete a firewall

> `Warning:` Deleting a firewall removes all associated rules and can break access to running services.

1. Go back to `Management → Firewall`.
2. Click the `Delete` (trash) icon on the firewall.
3. Confirm deletion when prompted.

<img src="https://mintcdn.com/aion-7ea50436/3ZV6BI4fXoNXgg-d/images/screens/firewall-6.png?fit=max&auto=format&n=3ZV6BI4fXoNXgg-d&q=85&s=00203a064b0e0b6ccf13f7d55deffc05" width="500" data-path="images/screens/firewall-6.png" />
