# How to access the server firewall in HestiaCP?

The **Firewall** will allow you to open or close IP connections or UDP/TCP ports.

To access the Firewall, follow these steps:

1. Click on the gear icon in the top menu.
2. Then, go to the **Firewall** option.

<figure><img src="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/HOOkDiaTWUsu8J69TNvg/HestiaCPGlobal03.png" alt=""><figcaption></figcaption></figure>

Among the **Firewall** options you will find, the most useful ones are:

1. **Add Rule:** This will allow you to open or close IP connections or TCP/UDP ports.
2. **Banned IP Addresses:** You will see a list of blocked IPs that you can unblock if necessary.

<figure><img src="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/AObI3lw7xzSIHXxJt2wn/HestiaCPGlobal06.png" alt=""><figcaption></figcaption></figure>

**Add Rule**

To open or close a connection, you will need to:

1. Define the action to take.
2. Choose the protocol you want to affect.
3. Write the port you want to open or close.
4. Write the IP address you want to open or close.
5. Finally, you will need to save the rule using the **Save** button located at the top right.

<figure><img src="https://content.gitbook.com/content/Ofi0Qrfm7RZh6yIwbvAQ/blobs/IZMi67b7KJQhf4OZRInE/HestiaCPGlobal07.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/web-hosting-revendedor/administracion-con-hestiacp/servicios-del-servidor/como-acceder-al-firewall-del-servidor-en-hestiacp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
