# 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>
