---
title: "Set Default Policy for a Chain"
slug: "set-default-policy-for-a-chain"
updated: 2024-09-02T09:58:01Z
published: 2024-09-02T09:58:01Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zpesystems.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Default Policy for a Chain

## Set default Policy for a Chain through CLI

Before changing the default policy for a chain to drop ensure that all required accept rules have been entered. After the change takes effect all not allowed access will be dropped.

1. Log in to the Nodegrid device CLI console with an admin account.
2. Navigate to the firewall policy to changed. IPv4 Policies are located at:

```plaintext
[admin@nodegrid /]# cd /settings/ipv4_firewall/policy/
```

IPv6 Policies are located:

```plaintext
[admin@nodegrid /]# cd /settings/ipv6_firewall/policy/
```
3. Use the **show**command to list the current settings.

```plaintext
[admin@nodegrid policy]# show input = accept
output = accept forward = accept
```
4. Change the default policy for a chain with the set command.

```plaintext
[admin@nodegrid policy]# set input=drop
```
5. Use the **commit**command to save and activate the changes.

```plaintext
[+admin@nodegrid policy]#commit
```

## Set default Policy for a Chain through WebUI

Before changing the default policy for a chain to drop ensure that all required accept rules have been entered. After the change takes effect all not allowed access will be dropped.

1. Log in with an admin account and go to ***Security::Firewall.*** ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/set-default-policy-for-a-chain-image-xlmo7d63.jpg)
2. Select the Chain for which the default policy should be changed. ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/set-default-policy-for-a-chain-image-98wnw5z4.jpg)
3. Click on **Change Policy.** ![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/set-default-policy-for-a-chain-image-chiu7u5g.jpg)
4. Set the new default policy and accept the change with **Save**. The new Policy gets saved and will be effective immediately

![](https://cdn.document360.io/763c5fb1-b9af-4ccd-9ad6-cf28ae4cd5a3/Images/Documentation/set-default-policy-for-a-chain-image-ktnoo0hd.jpg)
