Website Security & Threat Management
Introducing the BPF Tools

Introducing the BPF Tools

7/3/2014 · Marek Majkowski

What this post added

This post introduces Cloudflare's open-sourced BPF Tools, designed for high-performance packet filtering to combat large-scale DDoS attacks. It details how these tools, including `pcap2hex`, `parsedns`, `bpfgen`, `filter`, and `iptables_bpf`, can be used to analyze pcap files, generate BPF bytecode for specific traffic patterns (like DNS floods targeting subdomains), verify the bytecode, and deploy it via iptables rules. The contribution highlights the practical application of BPF for dropping malicious traffic at the iptables level before it impacts application servers, with a focus on DNS traffic and the ability to match IPv6 packets, perform suffix matching, and handle case-insensitive domain matching.

Read the original post ↗