# Activate an NIC-based Firewall

To activate a Firewall, follow these steps:

1\. In the **DCD**, go to **Menu** > **Virtual Data Centers**.

2\. Select the data center to activate firewall.

3\. In the Workspace, select a Virtual Machine with a **NIC**.

4\. From the Inspector pane, open the **Network** tab.

5\. Open the properties of the NIC for which you want to set up a Firewall.

6\. Choose either **Ingress**, **Egress**, or **Bidirectional** traffic flow type for which the Firewall needs to be activated.

![Activate a Firewall](/files/CnzwUIDSNWscyl6Istsv)

{% hint style="warning" %}
**Warning:** Activating the Firewall without additional rules will block all incoming traffic. Make sure you set the Firewall rules by using **Manage Rules**.
{% endhint %}

{% hint style="success" %}
**Result:** The Firewall is activated for the selected **NIC**.
{% endhint %}


---

# 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://docs.ionos.com/cloud/network-services/vdc-networking/firewall/how-tos/activate-firewall.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.
