# Security Firewall Rule

Firewall rules allow you to permit or deny connections to or from a virtual machine (vm) based on the configuration you specify. When you create a firewall rule, you define a set of components that determine what the rule does. Components allow you to target specific traffic types, based on traffic protocols, destination ports, sources, and destinations.

{% hint style="warning" %}
Before creating a Security Firewall Rule, you must first have an Instance. If you don't have an Instance yet, you can deploy an Instance in Create VM Instance
{% endhint %}

Here are the steps to create a Security Firewall Rule:

* On your **Service Portal AI**, select the **Security** menu then click the **Create Security** button.

<figure><img src="/files/9BKWDHH3GKFpg2I6mgBN" alt=""><figcaption></figcaption></figure>

* To create a new Security Firewall Rule, complete the form as shown below.

<figure><img src="/files/ni5055veY7kyLijnMwg6" alt=""><figcaption></figcaption></figure>

* The following table describes each field in the Create Security form.

<table><thead><tr><th width="220">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Name of your security.</td></tr><tr><td><strong>Description</strong></td><td>Description of the security configuration.</td></tr><tr><td><strong>Inbound Rule</strong></td><td>Define the traffic allowed to the instance on which ports and from which sources.</td></tr><tr><td><strong>Outbound Rule</strong></td><td>Define the traffic allowed to leave the instance on which ports and to which destinations.</td></tr><tr><td><strong>Applied to Instances</strong></td><td>Select the instances to which this security rule will be applied.</td></tr></tbody></table>

* After reviewing the field descriptions above, follow the steps below to create a Security Firewall Rule.
* Fill in the Create Security form by entering the name of the security configuration in the **Name** field and entering the description in the **Description** field.

<figure><img src="/files/YjNmFgBcoz47QTF42U3F" alt=""><figcaption></figcaption></figure>

* In the **Inbound Rule** section, click the **New Rule** button to add a new rule, define the required rule parameters in the available fields, and click the **Delete** button if you want to remove an existing inbound rule.

<figure><img src="/files/4FF6ZJBW39cJyjDd6cg7" alt=""><figcaption></figcaption></figure>

* In the **Outbound Rule** section, click the **New Rule** button to add a new rule, define the required rule parameters in the available fields, and click the **Delete** button if you want to remove an existing outbound rule.

<figure><img src="/files/WdRCaOKTMKFQjEhy25mx" alt=""><figcaption></figcaption></figure>

* Select the instance in the **Applied to Instances** field where the security configuration will be applied.

<figure><img src="/files/WDRf2H3J4OXP9rbQxXA6" alt=""><figcaption></figcaption></figure>

* Click the **Create** button to save the security configuration, or click the **Cancel** button if you do not want to continue the process.&#x20;

<figure><img src="/files/Mpo0EkFg3UgC7HlSDB3f" alt=""><figcaption></figcaption></figure>

* A notification will appear displaying the message "**Security has successfully created**".

<figure><img src="/files/s5MANzJeTlZABAhY4XCH" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.cloudeka.ai/guidance-for-individual/deka-flexi/deka-flexi-security/security-firewall-rule.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.
