Skip to content
项目

关于

Service-aware Linux firewall powered by eBPF/XDP.

安全与隐私

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+4
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Auto XDP raptor logo

Auto XDP

A service-aware firewall for Linux

Approve the services you want to expose.
Auto XDP keeps incoming access in sync as they start and stop.

Website · Install · First run · Screenshots · Wiki · Support

Latest release Distro Checks License: MPL 2.0

Python 3.10 or newer eBPF / XDP systemd and OpenRC XDP backend requires kernel conntrack lookup and release kfuncs

Debian and Ubuntu supported Fedora and RHEL supported openSUSE supported Arch Linux supported Alpine Linux supported


Auto XDP Overview showing XDP Generic, live traffic, two allowed TCP ports, and BPF packet counters.

XDP Generic on isolated Linux, captured November 8, 2026.
Real HTTP requests reach approved ports 8080 and 9100; unapproved port 9090 is blocked.

Why Auto XDP?

Manually maintained port rules can become outdated as services start, stop or change. Auto XDP matches your approvals to live listeners and keeps active allow rules current, reducing repetitive firewall maintenance.

  • Keep rules aligned with services. Approve access once; active allow rules follow the service's listeners.
  • Drop unwanted traffic early. Native XDP filters packets before the normal Linux networking path on supported hosts.
  • See what is allowed and why. Inspect service approvals, traffic counters, and packet decisions in the CLI or live dashboard.

For example, approve nginx.service for public HTTPS on TCP 443. With enforcement enabled:

What happens on the host What Auto XDP does
Nginx starts listening on port 443 Adds an allow rule for incoming connections to that listener
Nginx stops and its listener disappears Removes that allow rule
Nginx starts listening again Restores the rule when the listener matches your approval
An unapproved app starts listening on port 8080 Keeps incoming connections to that app blocked

Discovering a listening port does not authorize it. Rules update after service changes are detected and reconciled; updates are not instantaneous. Other host firewalls and cloud security groups still apply.

The CLI, dashboard, approval API, and module settings check whether the configuration changed while you were editing it. If an edit conflicts, reload the latest configuration and retry. The controller closes revoked access before retrying modules. Starting the runtime or applying module settings can build a missing dependency.

XDP is used when supported, with nftables fallback when permitted. Services requiring XDP-specific protection stay closed when it is unavailable. See how it works and how it compares.

Installation

Requires Linux, Python 3.10+, and sudo. The installer checks kernel capabilities and installs the required dependencies. See the Wiki for supported systems and full requirements.

Install the latest published release:

(
  set -e
  # quick-install-version:start
  AUTO_XDP_VERSION=v26.11.12a
  # quick-install-version:end
  auto_xdp_tmp=$(mktemp -d)
  trap 'rm -rf "$auto_xdp_tmp"' EXIT
  curl --proto '=https' --proto-redir '=https' --tlsv1.2 -sSfL \
    "https://github.com/Kookiejarz/Auto_XDP/archive/refs/tags/${AUTO_XDP_VERSION}.tar.gz" \
    | tar -xz -C "$auto_xdp_tmp" --strip-components=1
  cd "$auto_xdp_tmp"
  sudo bash setup_xdp.sh
)

For source installation, interface selection, and upgrades, see the installation guide.

First run

Fresh installs remain audit-only until explicitly enabled. Start by discovering services on the host:

sudo axdp discover

Approve the services you want to make reachable. On a remote host, approve SSH first. These examples assume ssh.service listens on port 22 and nginx.service is already configured to serve HTTPS on port 443; use the actual service names and ports reported on your host (for example, sshd.service):

sudo axdp allow ssh.service tcp/22 --zone public
sudo axdp allow nginx.service tcp/443 --zone public

These commands record approvals; they do not install, configure, or start the services. Review the resulting decisions, then enable enforcement:

sudo xdp-port-sync --mode audit --explain
sudo axdp enable

Auto XDP now synchronizes allow rules for approved listeners as they appear and disappear. You can check the effective policy with sudo axdp ports and open the live dashboard with sudo axdp tui.

More screenshots

More views from the XDP session, plus a separate nftables fallback example. Click any preview to open the full-size image.

Events · packet decisions
XDP Events showing sampled allow and drop decisions, including PORT_NOT_AUTHORIZED for TCP 9090.
Recorded packet samples with allow/drop reasons.
BPF Maps · live firewall state
Live XDP BPF maps showing their types, entry counts, and kernel-reported memory.
Pinned maps, entry counts, and reported memory.
Audit · service authorization
XDP audit showing approved web and metrics services and the denied admin service on TCP 9090.
Approved web and metrics services; admin access denied.
Requests · review before approval
Pending approval request for the admin service on TCP 9090 in the XDP session.
The admin listener stays blocked while approval is pending.
Handlers · optional protection
XDP handler catalog with optional protection modules listed and none enabled in this demonstration.
Module availability; optional handlers are not enabled here.
nftables · fallback example
Separate same-day nftables capture showing real traffic and two allowed TCP ports.
A separate same-day Linux test using the fallback backend.

Images are rendered from real terminal captures in an isolated Linux test environment. They show functional behavior, not a throughput benchmark.

Documentation

Contributing

See CONTRIBUTING.md for contribution guidelines and local test commands.

Support Auto XDP

Auto XDP receives donations through its fiscal host, Open Source Europe (OSE). Donations help us run test servers, test Auto XDP on more Linux kernels and network cards, and maintain our release tools. You can donate or see the project's income and expenses on Open Collective.

License

MPL 2.0 © 2026 Yunheng Liu

探索相关项目

加载中…