mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6800] [Bug]: Xray fails to start after updating to 3.10.0: "failed to disable ipv4 rp_filter" #4530
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#4530
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HaniWhiz on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6800
Describe the bug
When i updated from 3.9.0 to 3.10.0 with the error "server failed to disable ipv4 rp_filer" on the xray core. And no xray version and restart fixed it, it only got fixed after downgrading back to 3.9.0 and this was new for me and have had never happened since version 2.8.0
How to reproduce the problem
When i updated from 3.9.0 to 3.10.0 with the error "server failed to disable ipv4 rp_filer" on the xray core. And no xray version and restart fixed it, it only got fixed after downgrading back to 3.9.0 and this was new for me and have had never happened since version 2.8.0
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.10.0
Xray-core version
No response
How did you install 3x-ui?
Other (please describe in the bug body)
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Oct 12, 2026):
This is a duplicate of #6796, and it is already fixed: the
v3.10.0release was rebuilt with the fix after the first build went out. Re-running the update tov3.10.0should clear the error, so you do not need to stay on 3.9.0.Why it happened. The first 3.10.0 build shipped a hardened systemd unit (
b42a1c0b fix(systemd): harden shipped x-ui unit files (#6718)) withProtectKernelTunables=yes. That setting mounts all of/proc/sysread-only. A WireGuard outbound in kernel-TUN mode has to writenet.ipv4.conf.all.rp_filterwhile Xray starts, so the core aborted withfailed to disable ipv4 rp_filter for all: ... read-only file system. 3.9.0 did not have that line inx-ui.service.debian, which is why downgrading made the error go away.How to get the fix. Run the update again from the
x-uimenu, or with the install script.update.shdownloads the currentlatestrelease (update.sh:521) and reinstalls the unit file from the tarball (update.sh:723), so you get the corrected unit. Then check:You should see
ReadWritePaths=-/proc/sys/net. If the core still fails after that, please post:journalctl -u x-ui.Verdict: Duplicate
Severity: High (the core does not start on hosts with a kernel-TUN WireGuard outbound)
Confidence: High
Root cause:
ProtectKernelTunables=yes, added tox-ui.service.{debian,arch,rhel}byb42a1c0b(#6718), makes/proc/sysread-only. Xray's WireGuard kernel TUN writes/proc/sys/net/ipv4/conf/all/rp_filterwhile it starts, so the core aborts.Same class: The same abort happens in any environment where the core holds CAP_NET_ADMIN but
/proc/sys/netis read-only or/dev/net/tunis missing (for example the shipped docker-compose with NET_ADMIN). This is covered by68435837below.Already fixed:
1f2738edfix(systemd): let the WireGuard kernel TUN write rp_filter under the sandboxand68435837fix(xray): fall back to the userspace TUN where kernel TUN cannot be set up. Thev3.10.0tag now points at74c3cc38, which includes both, and its assets were rebuilt at 2026-10-12 16:23 UTC.Duplicate of: #6796 (same error, same root cause; closed by
1f2738ed)Evidence: -
x-ui.service.debian:ReadWritePaths=-/proc/sys/netadded just beforeProtectKernelTunables=yes(1f2738ed).git show v3.9.0:x-ui.service.debianhas noProtectKernelTunables.-
internal/xray/kernel_tun_linux.go:22:return hasEffectiveNetAdmin() && !kernelTunReachable()probes/proc/sys/net/ipv4/conf/all/rp_filterfor writing.-
internal/web/service/xray.go:192-193:if xray.KernelTunBlocked() { xrayConfig.OutboundConfigs = forceUserspaceWireGuardTun(...) }setsnoKernelTunon every WireGuard outbound when the probe fails.-
.github/workflows/release.yml:109-111copies the unit files into the release tarball.Not determined: Whether you installed the first
v3.10.0build or the rebuilt one. The issue was opened at 17:50 UTC, after the rebuild. If a fresh update still shows the error, the three answers above will settle it.I changed the title from "[Bug]: xray core error after update" to make the problem clearer.
This reply was generated automatically; a maintainer may follow up.