# Convert Custom Network Security Group to Default

Default NSGs provide a standardized set of security rules and automatically add every newly provisioned VMs as a member, making it easier to maintain and scale your network security as your organization grows. It also reduces administrative overhead by eliminating the need to configure and update security rules manually.

{% hint style="info" %}
**Prerequisites:** Ensure that you have appropriate permissions to create NSGs. Only contract administrators, owners, and users with permissions to the corresponding VDC can create and manage NSGs.
{% endhint %}

{% hint style="info" %}
**Note:**

* Only one security group can be a default group at a time.
* A default security group is created with the four default rules. However, the rules are not created when you convert an existing custom NSG to a default NSG. For more information, see [<mark style="color:blue;">FAQs</mark>](/cloud/security/network-security-groups/nsg-faqs.md#what-predefined-rules-does-a-default-network-security-group-contain).
  {% endhint %}

## Convert from custom to default

To convert a custom NSG to a default NSG, follow these steps:

1\. In the **DCD**, go to **Menu** > **Security** > **Network Security Groups**.

2\. Select a data center from the drop-down list.

3\. Select an NSG and click **Set as default** in the **Network Security Groups** window to convert the respective custom group to default.

![Set as default](/files/fi6zr6WrsEzpqSpGVXCS)

* Alternatively, on the **Network Security Groups** window, you can select the **NAME** of the respective security group or select **View & Edit** for the respective security group:

![Alternative options](/files/jDGP5IQFxcr6U2iLyi9R)

* Next, select **Set as default** in the **Security Group Details** window.

![Set as default](/files/PET8Z6jdsyNdIB7TTZ80)

4\. Select **Confirm** in the pop-up window.

{% hint style="success" %}
**Result:** The selected NSG is converted to the default group.
{% endhint %}

![The group is set to Default](/files/rnFCteKdgl6v5erQS8Ga)

## Revert from default to custom

1\. Select **Remove default status** in the **View & Edit Group** window to remove the default status.

![The Default NSG is converted to Custom](/files/4LVmk19mit5FvjtxonEJ)

2\. Select **Confirm** to confirm the status change.


---

# 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/security/network-security-groups/how-tos/convert-custom-nsg.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.
