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

# Tenbyte Firewall

Create and manage firewalls in Tenbyte Cloud to control inbound and outbound traffic for your virtual machines.

Firewall rules define which connections are allowed or blocked, and can be configured and attached to VMs directly from the dashboard.

## Select Firewall from Dashboard

* Open your Cloud dashboard. From dashboard, click on **Firewall** to create your **Firewall**.

  <Frame caption="Select Firewall">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/51.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=789856cde854c399bc0c1d8c17afbd5f" alt="Select Firewall" width="1918" height="880" data-path="images/cloud/51.png" />
  </Frame>

***

## Create a Firewall

* Choose **Firewall** as the **Type**.
* Choose the data center where the firewall will be applied.

  <Frame caption="Create a Firewall">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/52.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=07566c091f2cb72dc0f7eb1189acc3cc" alt="Create a Firewall" width="1918" height="587" data-path="images/cloud/52.png" />
  </Frame>

### Configure Inbound Rules

* Inbound rules control traffic entering your virtual machine. Under Inbound rules, you can specify the traffic allowed to enter your virtual machine.

  <Frame caption="Configure Inbound Rules">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/53.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=b1101f449b8abead92b2bf2ad415bc98" alt="Configure Inbound Rules" width="1232" height="337" data-path="images/cloud/53.png" />
  </Frame>

  * **Type**: Select the type of traffic.
  * **Protocol**: Choose the protocol.
  * **Port Range**: Specify the port range.
  * **Sources**: Enter the IP prefixes allowed to access the VM or select Any to allow all incoming traffic.
* Use inbound rules to allow only the ports required by your application and block all others.

### Configure Outbound Rules

* Outbound rules control traffic leaving your virtual machine. Under Outbound rules, specify which traffic can leave your virtual machine.

  <Frame caption="Configure Inbound Rules">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/54.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=da39e81ceed1ca0edbef8377a449ece3" alt="Configure Inbound Rules" width="1401" height="226" data-path="images/cloud/54.png" />
  </Frame>

  * **Type**: Select the type of traffic.
  * **Protocol**: Choose the protocol.
  * **Port Range**: Specify the port range.
  * **Destinations**: Select All IP to allow traffic to any destination or specify a target IP range if you want to restrict the destinations.

### Configure Firewall Settings

* Enter a name for the firewall.
* Select the billing account that this firewall belongs to.

<Note>
  The firewall service is free, but the resources like VMs attached to it will incur additional charges.
</Note>

* Click **Create** to finish creating the firewall. It will now be available to assign to your virtual machine.

  <Frame caption="Configure Firewall Settings">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/55.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=372e9aede363bee7425bae3511a8a34d" alt="Configure Firewall Settings" width="1625" height="327" data-path="images/cloud/55.png" />
  </Frame>

***

## Assign Firewall to VM

* After creating the firewall with the inbound and outbound rules, go to your created VM dashboard.

* Navigate to the **Firewall section**.

  <Frame caption="Navigate to Firewall Settings">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/56.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=ec71591595d4df550c2d1e089b5b6443" alt="Configure Firewall Settings" width="1918" height="876" data-path="images/cloud/56.png" />
  </Frame>

* Click on **Attach Firewall**.

  <Frame caption="Attach your Created Firewall">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/57.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=e68129be8c535a020dc6e38a2f1d7abb" alt="Attach Firewall" width="1820" height="701" data-path="images/cloud/57.png" />
  </Frame>

* Select the firewall you created and click on **Add**.

  <Frame caption="Select the firewall">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/58.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=d3c8ff745dc3f16cd90a92ce0649fb04" alt="Configure Firewall Settings" width="1818" height="392" data-path="images/cloud/58.png" />
  </Frame>

* Once added, the firewall rules will be applied to the VM, ensuring that only allowed traffic can access it.

  <Frame caption="View your Firewall Configurations">
    <img src="https://mintcdn.com/vidinfra/SRZLRzCP1yNF_tQm/images/cloud/59.png?fit=max&auto=format&n=SRZLRzCP1yNF_tQm&q=85&s=be09ac0bbc2b35e7c9ef29135747ac3e" alt="Configure Firewall Settings" width="1918" height="881" data-path="images/cloud/59.png" />
  </Frame>
