---
description: How Traffic types works in Gateway.
title: Traffic types
image: https://developers.cloudflare.com/cloudflare-one/traffic-controls/packet-filtering/traffic-types/og.png?v=61a7a511c4cef174
---

[Skip to content](#main-content)

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

# Traffic types

Last updated Oct 12, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/cloudflare-one/traffic-controls/packet-filtering/traffic-types/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Cloudflare Network Firewall enables you to allow or block traffic on a variety of packet characteristics, including:

- **Source and destination IP** — the sender's and receiver's IP addresses
- **Source and destination port** — the numeric port identifying the specific service (for example, port 80 for HTTP)
- **Protocol** — the communication method, such as TCP or UDP
- **Packet length** — the size of the packet in bytes
- **Bit field match** — inspect individual flags within packet headers

Cloudflare Network Firewall operates at OSI layers 3 and 4 — the network layer (IP addressing and routing) and transport layer (port-based connections). It supports protocols such as TCP (reliable, ordered connections), UDP (fast, connectionless messages), and ICMP (network diagnostic messages like ping). You can write rules against any layer 3 or 4 protocol, not only TCP and UDP.

To see the full list of fields you can use when writing filter expressions, refer to [Cloudflare Network Firewall fields](https://developers.cloudflare.com/cloudflare-network-firewall/reference/network-firewall-fields/).

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-one/traffic-controls/packet-filtering/traffic-types/#page","headline":"Traffic types","description":"How Traffic types works in Gateway.","url":"https://developers.cloudflare.com/cloudflare-one/traffic-controls/packet-filtering/traffic-types/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-one/traffic-controls/packet-filtering/traffic-types/og.png?v=61a7a511c4cef174","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["TCP","UDP","ICMP"]}
```
