# Modify Rules

It's a good practice to regularly review your NSG rules and modify the existing rules to reflect changes in security protocols or policies or define new rules to address emerging security threats or changing business requirements.

To define rules, 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 in one of the following ways to modify it:

* select the **NAME** of the respective NSG.
* select **View & Edit**.

![Select NSG to update rules associated with it](/files/sxqaj7F3ETYXPM3zDfaS)

4\. In the **View & Edit Group** window, select the rule in one of the following ways to modify it:

* select the **NAME** of the respective rule.
* select **View & Edit**.

![Select a rule](/files/z3IF94Bm1qUf0rf6ukhM)

5\. Update the necessary details. You can only edit those values that are enabled for modification.

6\. Select **Edit**.

![Modify the rule](/files/JQNpsd5NyL5QRjwXSnGw)

{% hint style="success" %}
**Result:** The selected rule is updated.
{% endhint %}


---

# 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/modify-rules.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.
