Skip to content
Cloudflare

Optimizing Magic Firewall’s IP lists

Mar 29, 2022Jordan Griege9 min read
Opens blog.cloudflare.com
What the post coversAI, from the source post

This post details the optimization of Magic Firewall's IP lists by migrating from nftables sets to eBPF maps (BPF_MAP_TYPE_LPM_TRIE).

  • This change significantly reduced memory consumption by allowing IP lists to be shared across network namespaces instead of being duplicated.
  • The post also describes the necessary patch to the nftables project to enable direct integration of eBPF programs, allowing for atomic rule replacements and enhanced packet inspection capabilities.
Read the full post on blog.cloudflare.com · 9 min (opens in a new tab)

More from the Website Security & Threat Management trail