XDP Firewall is a stateless firewall that uses eBPF and attaches to the Linux kernel’s XDP hook for high-performance packet filtering. Processing traffic before it passes through much of the networking stack can reduce latency and resource consumption.
The firewall supports configurable rules for IPv4 and IPv6 traffic, source-address blocking, CIDR range dropping and rate limiting. Rules can match TCP, UDP and ICMP traffic using criteria including addresses, ports, packet lengths, TTL values and TCP flags.
Runtime configuration and command-line utilities allow administrators to manage rules without restarting the firewall. Packet counters and optional logging provide visibility into allowed, dropped and passed traffic.
This is free and open source software.
Key Features
- Attaches eBPF programs to the Linux kernel’s XDP hook.
- Filters IPv4 and IPv6 traffic.
- Supports TCP, UDP and ICMP filtering rules.
- Matches traffic by addresses, ports, CIDR ranges, TTL values, packet sizes and TCP flags.
- Provides source IP and flow-based rate limiting.
- Temporarily blocks source addresses that match configured rules.
- Drops individual addresses or entire IP ranges.
- Uses pinned BPF maps for dynamic rule management.
- Includes command-line tools for adding and removing rules.
- Displays real-time allowed, dropped and passed packet counters.
- Offers configurable terminal and file logging.
- Supports native, generic and hardware-offload XDP attachment modes.
- Allows features to be enabled or disabled at build time.
- Reloads runtime configuration at a configurable interval.
Website: github.com/gamemann/XDP-Firewall
Support:
Developer: Christian Deacon
License: MIT License

XDP Firewall is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| Firewalls | |
|---|---|
| OpenSnitch | Interactive application firewall |
| nftables | Provides a new in-kernel packet classification framework |
| Firewalld | Dynamically managed firewall with support for network/firewall zones |
| Portmaster | Application firewall that does the heavy lifting |
| iptables | Configure the Linux 2.4.x and later packet filtering ruleset |
| ufw | Uncomplicated Firewall. This is software for managing a netfilter firewall |
| Shorewall | High-level tool for configuring Netfilter |
| gufw | Easy, intuitive, way to manage your Linux firewall |
| Vuurmuur | Uncomplicated Firewall, manage a netfilter firewall |
| awall | Firewall configuration tool, providing various benefits over plain iptables |
| Foomuuri | Multizone bidirectional nftables firewall |
| bgpipe | BGP reverse proxy and firewall |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.