---
title: "Cilium & replacing iptables"
---

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

# Cilium & replacing iptables

Traditional `kube-proxy` chains thousands of `iptables` rules linearly (`O(n)` per packet). [Cilium](https://example.com/ebpf-field-guide/glossary/#cilium) replaces those chains with TC + socket eBPF programs backed by `O(1)` hash maps keyed by pod security identity.

Its companion [Hubble](https://example.com/ebpf-field-guide/glossary/#hubble) reads flow events from those same eBPF maps, giving DNS, HTTP, and L3/L4 drop visibility across the cluster—which is why our 5G lab runs Cilium as its CNI.

Source: https://example.com/ebpf-field-guide/networking-and-packet-path/networking-hooks/cilium/index.mdx
