---
title: "Attach MAC Firewall Rule to MAC Firewall policy"
method: POST
path: "/mac-firewall-policies/{id}/mac-firewall-rule/:attach"
tags: ["Configuration - Policy"]
---

# Attach MAC Firewall Rule to MAC Firewall policy

`POST /mac-firewall-policies/{id}/mac-firewall-rule/:attach`

Attach MAC Firewall Rule to MAC Firewall policy.

## Path parameters

- `id` integer, required

## Request body

- XiqMacFirewallRuleRequest — List of MAC Firewall Rules
  - `action` 'PERMIT' | 'DENY' — The MAC Firewall Action.
  - `source_mac` integer — Source MAC address for MAC Firewall Rule.
  - `destination_mac` integer — Destination MAC address for MAC Firewall Rule.
  - `logging_type` 'OFF' | 'DROPPED_PACKETS' | 'SESSION_INITIATION' | 'SESSION_TERMINATION' | 'BOTH' — The logging Type for MAC Firewall Rule.

## Response `200`

OK

---

[API](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api.md) · [All operations](https://skmtc.net/extremecloudiq/apis/extremecloud-iq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extremecloudiq/extremecloud-iq-api/versions/5ff7ab84e8e8/schema)
