---
title: Traffic types · Cloudflare Magic Firewall docs
description: Magic Firewall enables you to allow or block traffic on a variety
  of packet characteristics, such as source and destination IP, source and
  destination port, protocol, packet length, and bit field match.
lastUpdated: 2025-01-17T12:22:49.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/magic-firewall/about/traffic-types/
  md: https://developers.cloudflare.com/magic-firewall/about/traffic-types/index.md
---

Magic Firewall enables you to allow or block traffic on a variety of packet characteristics, such as source and destination IP, source and destination port, protocol, packet length, and bit field match.

Magic Firewall supports layers three and four — network and transport — protocols such as TCP, UDP, and ICMP. Any type of layer three or four protocols can go through Magic Firewall and then be matched on those protocols.

To view the list of available fields, refer to [Magic Firewall fields](https://developers.cloudflare.com/magic-firewall/reference/magic-firewall-fields/).
