Kookiejarz/Auto_XDP
关于
Service-aware Linux firewall powered by eBPF/XDP.
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +4
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
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
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.
Images are rendered from real terminal captures in an isolated Linux test environment. They show functional behavior, not a throughput benchmark.
Documentation
- Installation, upgrades, and recovery
- Common commands
- Policy, compatibility, and protection details
- Dashboard and telemetry
- All Wiki guides
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
探索相关项目
加载中…






