---
title: "Configuring Firewall Rules | Hostman Docs"
description: "Set up and manage firewall rules on Hostman. Control network access and protect your infrastructure with custom security settings."
---

> For the complete documentation index for AI agents, see [llms.txt](https://hostman.com/llms.txt).

You can configure [cloud-managed firewall](https://hostman.com/cloud-firewall/) rules when creating a new firewall or when editing an existing firewall.

## Creating New Rules

> [!NOTE]
> If the **Allow traffic** option is selected, only traffic that matches the rule will be allowed. All other traffic will be blocked.
>
> If the **Deny traffic** option is selected, all traffic will be allowed except traffic specified by the rules.

### For a New Firewall

To create a new rule when creating a new firewall:

1.  Choose what you want to do: allow or deny certain traffic.
2.  Click **Add Rule** in the **Incoming Traffic** or **Outgoing Traffic** block. 
    

![93ed8f8f 85b8 418d Ae12 4c94f4205fd5](https://content.hostman.com/assets/0d31a731-3c74-4b88-bf4b-72ec1c7c866a.png?width=600&height=475)

3.  Specify the parameters:
    

-   -   **Subnet or address**. You can specify a specific IP, subnet, or the value `0.0.0.0/0` to allow/deny all addresses and subnets, or you can select **For all addresses**.
        
    -   **Type**. You can set your own rule or choose one of the ready-made types. In this case, the protocol and port will be filled in automatically.
        
    -   **Protocol**. You can select TCP, UDP or ICMP.
        
    -   **Port**. You can specify a port or a range of ports.
        

4.  Click **Add**.
    

### For An Existing Firewall

You can also add new rules to existing firewalls. To do this:

1.  Go to the **Networks** → **Firewall** section.
    
2.  Click on the firewall.
    
3.  Click **Add** in the **Incoming Traffic** or **Outgoing Traffic** block.
    

![3d2a760b A971 4733 B192 26d03f8fa491](https://content.hostman.com/assets/d5c11a84-6dec-4c1c-b35d-42ceb356beae.png?width=1555&height=827)

4.  Set the rule parameters and save the changes.
    

## Editing rules

To make changes to an already created rule:

1.  Go to the **Networks** → **Firewall** section.
    
2.  Click on the rule group.
    
3.  Click on the rule.
    
4.  Make your edits and save the changes.
    

## Deleting rules

To delete a rule:

1.  Go to the **Networks** → **Firewall** section.
    
2.  Click on the rule group.
    
3.  Click on the three dots next to the desired rule and click **Delete rule**.
