# 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 **Cloudeka Portal**, select the **Security** menu then click the **Create Security** button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/7security/7.1%20Security.png" alt=""><figcaption><p>Security</p></figcaption></figure>

* Fill 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>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></tbody></table>

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/7security/7.2%20Form%20Create%20Security.png" alt=""><figcaption><p>Create Security Form</p></figcaption></figure>

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/7security/7.3%20Form%20Create%20Security.png" alt=""><figcaption><p>Create Security Form</p></figcaption></figure>

* Click **Delete** button to delete the security. Select **Apply to Instance** (for the instance where Security is created), Click the **Save** button if you want to continue creating the firewall or **Cancel** if you don't want to continue the process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/7security/7.4%20Apply%20to%20Instance.png" alt=""><figcaption><p>Apply to Instance</p></figcaption></figure>

* There will be a notification if the Firewall has been successfully created **"Firewall has been successfully created"**.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/7security/7.5%20Notification.png" alt=""><figcaption><p>Notification</p></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://docs.cloudeka.id/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.
