---
title: "ezgh compute network-interfaces firewalls set"
description: "Set exactly which firewalls a network interface has."
---

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

# ezgh compute network-interfaces firewalls set

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh compute network-interfaces firewalls set <interface> (<firewall>…|--none) [flags]
```

Make a network interface's firewalls exactly these (ID, UUID or name; at most 5), attaching and detaching as needed; `--none` detaches them all.

Part of [`ezgh compute network-interfaces firewalls`](/cli/reference/compute-network-interfaces-firewalls).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--none` | boolean |  | detach every firewall |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/compute-network-interfaces-firewalls-set/index.mdx
