Skip to content

Compatibility and Protection Details

Kookiejarz edited this page Nov 13, 2026 · 2 revisions

Compatibility and Protection Details

Updated November 12, 2026 for v26.11.12a.

The sections below cover optional protection and deployment-specific behavior. For policy configuration and reconciliation details, see the architecture reference.

Workload grants and network zones

Nonempty legacy permanent_ports configuration is rejected; exposure must use workload grants and zones.

A grant restricted to named zone interfaces waits while those interfaces are absent; it never becomes an unrestricted grant. Other grants keep working. The next reconciliation applies it when the interface appears, while interface lookup errors remain explicit failures. This does not attach XDP to new devices.

Minecraft Java protection

To add protocol checks to an approved Minecraft Java server (using its actual service name):

sudo axdp allow paper.service tcp/25565 --zone public --profile minecraft

The minecraft profile validates Java handshakes/login traffic using Linux conntrack and observed server progress. Verified sessions require matching full policy/profile generations; loss of their bounded proof record revokes admission. Server replies must traverse the protected host's TC egress hook. Split or opaque initial frames receive only bounded probation, not verified status; use a TCP-reassembly-aware profile when that limit is unsuitable.

This profile requires XDP and its handler; its endpoints remain closed when that protection is unavailable, including on the nftables backend.

SYN-cookie protection

Optional SYN-cookie listener handoff requires the kernel request-socket helper (normally Linux 6.11+) and a verifiably NAT-free network namespace. NAT LOCAL_IN can discard the assigned request socket before TCP accepts it; Auto XDP refuses this combination instead of changing host NAT. Strict cookie mode fails closed.

SYN-cookie rate budgets count SYNs for the entire port. The default base is max(1000, per-source SYN limit); an explicit per-port base of zero disables rate triggering while always still challenges every SYN. ACK validation keeps a grace window after challenges, preserves existing and closing connections, and negotiates ECN consistently with the host listener.

Outgoing replies and Linux conntrack

TCP/UDP replies to outgoing connections are admitted by exact Linux conntrack tuple and REPLY direction, without exposing local ephemeral ports. Incoming service requests still require workload grants even after the server replies. The XDP backend owns inet auto_xdp_conntrack, a counter-only activation table; it does not replace your firewall or NAT rules. Full disable/uninstall removes this table. Lookup currently supports conntrack zone 0 in the ingress network namespace; NOTRACK and other conntrack zones do not receive this exception.

While enforcement is active, the daemon checks this activation table every five seconds and restores it if removed or emptied. It leaves tables owned by other software untouched and backs off failed checks, up to five minutes.

Optional ICMP Echo Reply protection

Optional ICMP Echo Reply protection uses the small axdp_icmp kernel module (see ICMP module documentation). It exposes one read-only kfunc backed by Linux conntrack, with no separate flow table. When enabled, IPv4/IPv6 Echo Replies require a confirmed request's reply tuple; unmatched replies are dropped at XDP and counted as ICMP_REPLY_UNTRACKED. Echo Request rate limiting and ICMP error/NDP handling retain their existing behavior. Enable ICMP in Handlers, or run sudo axdp handler apply icmp --set enabled=true. The common loader resolves its .ko dependency before publishing the handler, automatically building a missing bundled module when matching kernel development files are installed.

RHEL and related distribution repositories

On RHEL 10, libbpf-devel requires CodeReady Linux Builder. The installer selects the repository matching the enabled BaseOS provider and update channel, using subscription-manager for subscription repositories and dnf config-manager for cloud RHUI repositories. Rocky/AlmaLinux use CRB or PowerTools. If the matching repository is unavailable, check dnf repolist --all and your subscription or cloud image's repository configuration, then rerun the installer.

Interface selection, XDP modes, and reloads

interfaces.xdp_mode = "auto" prefers generic XDP on explicitly included veth interfaces. Native veth XDP can disable the peer's TCP segmentation offloads and introduce a receive-queue bottleneck, reducing permitted TCP throughput even with a small BPF program. Other interfaces restore their last verified mode, or try native first. The alternate mode is tried when the first mode is unsupported, or when a verified native/generic conflict requires retaining the already active mode. An explicit native or generic setting stays strict. Permission, resource, configuration, and unclassified attachment errors stop activation and block automatic nftables fallback; diagnostics retain each attempt's mode and error. Native attachment alone does not guarantee faster permitted traffic. Automatic discovery reads kernel link types rather than interface name prefixes. Loopback, veth, dummy, ifb and netkit are excluded; explicit veth selection requires interfaces.allow_container = true. Bridges (including Docker/CNI bridges), bonds, VLANs, TAP and unknown types remain candidates; use interfaces.exclude for bridges that should stay outside this installation. TUN, WireGuard and other non-Ethernet links are reported as unsupported by the current Ethernet parser, even with allow_container. Type never grants trust. Interface enumeration errors abort automatic selection rather than silently reducing protection to the default-route interface.

axdp backend show reads a fresh kernel inventory and reports types plus unselected active interfaces. For an automatically selected installation, a new eligible interface or a failed inventory query marks health as degraded. This coverage check does not attach XDP to hotplugged interfaces; rerun the installer to apply the refreshed selection. JSON output also includes driver, bus and topology details when the kernel exposes them.

For the recognized ENA native-XDP MTU-limit error, auto mode tries generic without changing the MTU. Explicit native mode remains strict; other errors are classified independently.

Reload replaces programs within their active mode without detaching protection. An already attached native veth program can therefore remain native during an upgrade. Apply a mode change with a full axdp disable / axdp enable cycle; this temporarily disables filtering. A clean start in auto mode chooses generic for veth even if machine state recorded native previously.

The runtime, CLI, and TUI read numeric XDP modes from ip -j -d link output. Interface names, aliases, and program names do not determine the attachment mode. Unreadable state is reported as unknown; multiple attached modes are reported separately from a single native or generic attachment.

Important behavior

Auto XDP treats bind scope and ingress zone as separate facts. A wildcard bind such as 0.0.0.0 or :: is not authorization; service-aware mode requires a matching subject grant. Use observe or audit before enabling enforce on an existing host.

Clone this wiki locally