---
title: "ezgh compute firewalls attachments attach"
description: "Attach a firewall to a network interface."
---

> 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 firewalls attachments attach

{/* 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 firewalls attachments attach <firewall> <interface>
```

Attach a firewall to a network interface (ID, UUID or name) in its project; attaching one that's attached is fine. An interface has at most 5 firewalls (interface_firewall_limit).

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

## Flags

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

Source: https://docs.ezghcloud.com/cli/reference/compute-firewalls-attachments-attach/index.mdx
