# Security Group

Security Group allows or denies connections to or from virtual machines based on configurations you specify. When you create a rule in security, you define a set of components that determine what the rule does. Components allow you to target specific types of traffic, based on traffic protocol, destination port, source, and destination. In the Security Group, you can create, update data, and delete incoming or outgoing rules in Deka ROCK.

## Add Inbound/Outbound Rule

Following are the steps to create entry or exit rules on Deka ROCK: On the Cloudeka portal service page, select the Deka ROCK menu on the Platform.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/0halamanproject.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

Press the More button then select the Details button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/2.0detail.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

* Select the Security Group tab.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.37.sec-group.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

* Press the New Rule button on (a) to add an inbound rule or (b) to add an outbound rule.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.38%20sec-group.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

* The Add Role window appears, fill in the available columns.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.39%20sec-group.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

<table data-header-hidden><thead><tr><th width="187"></th><th></th></tr></thead><tbody><tr><td><strong>Column</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Protocol Type</strong></td><td>There are several types of protocols that can be used, including the following:<br>- Custom TCP Role<br>- Custom UDP Role<br>- Custom EDP Role<br>- All ICMP Rule<br>- SSH<br>- HTTP<br>- HTTPS<br>- MySQL<br>- MongoDB<br>- PostgreSQL</td></tr><tr><td><strong>IP Version</strong></td><td>You can have the IPv4 version or the IPv6 version.</td></tr><tr><td><strong>IP Address</strong></td><td>The internet protocol address used along with the Network ID to determine the number of bits allocated to networks and hosts in an internet protocol address used.</td></tr><tr><td><strong>Port Range Min</strong></td><td>Low port number in the allowed range.</td></tr><tr><td><strong>Port Range Max</strong></td><td>Highest port number in the allowed range.</td></tr><tr><td><strong>Description</strong></td><td>Displays a description of the configuration of the inbound rule or outbound rule that was created.</td></tr></tbody></table>

* Click the Create 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/17dekarock/17.40%20sec-group.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

* A notification will appear if the creation is successful "Adding the new rule was successful".

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.41%20sec-group.png" alt=""><figcaption><p>Add Rule</p></figcaption></figure>

## Edit Inbound/Outbound Rule

This guide is used if there is Security Group data that you want to change. Here are the steps to update incoming or outgoing rule data on Deka ROCK:

* On the Cloudeka portal service page, select the Deka ROCK menu on the Platform.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/0halamanproject.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

* Press the More button then select the Details button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/2.0detail.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

* Select the Security Group tab.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.37.sec-group.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

* Press the Edit button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.45%20edit.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

* Click the Edit button if you want to save the changes or Cancel if you do not want to continue the process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.46%20edit.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

* A notification "The rule has been successfully updated" will appear if the data has been successfully updated.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.47%20edit.png" alt=""><figcaption><p>Edit Rule</p></figcaption></figure>

## Delete Inbound/Outbound Rule

Following are the steps to delete the incoming or outgoing rule data configuration on Deka ROCK:

* On the Cloudeka portal service page, select the Deka ROCK menu on the Platform.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/0halamanproject.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>

* Press the More button then select the Details button.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/2.0detail.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>

* Select the Security Group tab.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.37.sec-group.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>

* Press the Delete button in the Action column.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.51%20del.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>

* The Delete this Role window appears, click the Yes button to continue the process.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.52%20del.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>

* The notification "Deletion of the rule was successful" will appear if it is successfully deleted.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/17dekarock/17.53%20del.png" alt=""><figcaption><p>Delete Rule</p></figcaption></figure>
