[GH-ISSUE #5205] [Bug]: WARP outbound always fails on 3x-ui v3.3.0 with Xray 26.6.1 #3650

Closed
opened 2026-10-31 20:33:58 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @okwebsite on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5205

Describe the bug

Checklist

  • I am using the latest version of 3x-ui
  • I searched existing issues before creating this report

Environment

  • 3x-ui Version: v3.3.0
  • Xray Version: 26.6.1
  • OS: Ubuntu 24.04 LTS
  • Provider: Hetzner (Germany)
  • Server Location: Germany

Bug Description

After upgrading to 3x-ui v3.3.0, the built-in WARP outbound cannot establish a connection.

When creating a WARP outbound from the panel and activating it, the outbound status immediately changes to:

How to reproduce the problem

No traffic is routed through WARP.

I also tested different routing methods and placed WARP behind inbound/routing rules, but the outbound still fails to connect.

Steps To Reproduce

  1. Install 3x-ui v3.3.0 on Ubuntu 24.04.
  2. Create a new WARP outbound from the panel.
  3. Save configuration.
  4. Restart Xray from the panel.
  5. Check outbound status.

Expected Behavior

WARP outbound should connect successfully and route traffic through Cloudflare WARP.

Actual Behavior

Outbound status remains "failed" and does not establish a connection.

Additional Notes

  • Freedom outbound works normally.
  • Blackhole outbound works normally.
  • Server has full internet connectivity.
  • Hetzner Germany server.
  • Endpoint generated by panel:

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

Image

3x-ui version

3.3.0

Xray-core version

26.6.1

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @okwebsite on GitHub (Jun 11, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5205 ### Describe the bug ### Checklist - [x] I am using the latest version of 3x-ui - [x] I searched existing issues before creating this report ### Environment - 3x-ui Version: v3.3.0 - Xray Version: 26.6.1 - OS: Ubuntu 24.04 LTS - Provider: Hetzner (Germany) - Server Location: Germany ### Bug Description After upgrading to 3x-ui v3.3.0, the built-in WARP outbound cannot establish a connection. When creating a WARP outbound from the panel and activating it, the outbound status immediately changes to: ### How to reproduce the problem No traffic is routed through WARP. I also tested different routing methods and placed WARP behind inbound/routing rules, but the outbound still fails to connect. ### Steps To Reproduce 1. Install 3x-ui v3.3.0 on Ubuntu 24.04. 2. Create a new WARP outbound from the panel. 3. Save configuration. 4. Restart Xray from the panel. 5. Check outbound status. ### Expected Behavior WARP outbound should connect successfully and route traffic through Cloudflare WARP. ### Actual Behavior Outbound status remains "failed" and does not establish a connection. ### Additional Notes - Freedom outbound works normally. - Blackhole outbound works normally. - Server has full internet connectivity. - Hetzner Germany server. - Endpoint generated by panel: ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots <img width="1290" height="2239" alt="Image" src="https://github.com/user-attachments/assets/c3cea478-3cf1-46ba-b282-5e77d603fcab" /> ### 3x-ui version 3.3.0 ### Xray-core version 26.6.1 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24 ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:33:58 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 11, 2026):

The report does not include the Xray logs or the actual generated outbound config, which are both necessary to determine the root cause. Below is what the code shows, what to check, and what information is still needed.

Context from the codebase

The missing-reserved-bytes bug reported in #4781 (empty reserved: [] due to client_id not being persisted from the Cloudflare registration response) was fixed in internal/web/service/integration/warp.go and is present in v3.3.0. Specifically, RegWarp now extracts config.client_id from the Cloudflare response and stores it in the warpData map before saving to the database (lines 110–114 of integration/warp.go). The frontend collectConfig in WarpModal.tsx then decodes this into the 3-byte reserved array.

This fix applies to new registrations made on or after the fix was included. If you are using a WARP registration that was created on an older version (before the fix), the stored warpData in the database may still be missing client_id, which causes reserved: [] in the outbound and can prevent the WireGuard handshake from completing.

Diagnostic steps

Run the following commands to confirm what is actually stored:

  1. Check whether client_id is present in the stored WARP credentials:
sudo sqlite3 /etc/x-ui/x-ui.db \
  "SELECT value FROM settings WHERE key='warp';" | jq 'del(.private_key, .access_token)'

Expected output for a correctly registered WARP account includes a client_id field. If it is absent or empty, the reserved bytes will be empty and the WireGuard handshake will fail.

  1. Inspect the generated outbound config:
sudo sqlite3 /etc/x-ui/x-ui.db \
  "SELECT value FROM settings WHERE key='xrayTemplateConfig';" \
| jq '.outbounds[] | select(.tag=="warp") | {
    protocol,
    reserved: .settings.reserved,
    endpoint: .settings.peers[0].endpoint,
    mtu: .settings.mtu,
    domainStrategy: .settings.domainStrategy
  }'

The reserved field must be a 3-element integer array (e.g., [123, 45, 67]). An empty array ([]) or null means the client_id was not present when the outbound was generated.

  1. Retrieve Xray logs:
journalctl -u x-ui --no-pager -n 100 | grep -i "warp\|wireguard\|failed\|error"

If client_id is missing

Delete the current WARP registration from the panel (WARP modal → "Delete Account"), then create a new one. This re-registers with Cloudflare and stores the client_id correctly under v3.3.0. After registering, use the "Refresh" button to fetch the config, then add or reset the outbound.

Information needed to continue

The following is missing from the report:

  1. Output of the two sqlite3 commands above (redact private keys and access tokens as shown).
  2. The Xray log output from the journalctl command above, or from the panel's log viewer.
  3. Whether the failing outbound was created after upgrading to v3.3.0 (new registration) or carried over from a previous version.
  4. The exact text of the "failed" status or error message shown in the panel screenshot.

Without the Xray logs and the generated config, the root cause cannot be determined from the report as submitted.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4681700079 --> @github-actions[bot] commented on GitHub (Jun 11, 2026): The report does not include the Xray logs or the actual generated outbound config, which are both necessary to determine the root cause. Below is what the code shows, what to check, and what information is still needed. **Context from the codebase** The missing-`reserved`-bytes bug reported in #4781 (empty `reserved: []` due to `client_id` not being persisted from the Cloudflare registration response) was fixed in `internal/web/service/integration/warp.go` and is present in v3.3.0. Specifically, `RegWarp` now extracts `config.client_id` from the Cloudflare response and stores it in the `warpData` map before saving to the database (lines 110–114 of `integration/warp.go`). The frontend `collectConfig` in `WarpModal.tsx` then decodes this into the 3-byte `reserved` array. This fix applies to **new registrations** made on or after the fix was included. If you are using a WARP registration that was created on an older version (before the fix), the stored `warpData` in the database may still be missing `client_id`, which causes `reserved: []` in the outbound and can prevent the WireGuard handshake from completing. **Diagnostic steps** Run the following commands to confirm what is actually stored: 1. Check whether `client_id` is present in the stored WARP credentials: ```bash sudo sqlite3 /etc/x-ui/x-ui.db \ "SELECT value FROM settings WHERE key='warp';" | jq 'del(.private_key, .access_token)' ``` Expected output for a correctly registered WARP account includes a `client_id` field. If it is absent or empty, the `reserved` bytes will be empty and the WireGuard handshake will fail. 2. Inspect the generated outbound config: ```bash sudo sqlite3 /etc/x-ui/x-ui.db \ "SELECT value FROM settings WHERE key='xrayTemplateConfig';" \ | jq '.outbounds[] | select(.tag=="warp") | { protocol, reserved: .settings.reserved, endpoint: .settings.peers[0].endpoint, mtu: .settings.mtu, domainStrategy: .settings.domainStrategy }' ``` The `reserved` field must be a 3-element integer array (e.g., `[123, 45, 67]`). An empty array (`[]`) or `null` means the `client_id` was not present when the outbound was generated. 3. Retrieve Xray logs: ```bash journalctl -u x-ui --no-pager -n 100 | grep -i "warp\|wireguard\|failed\|error" ``` **If `client_id` is missing** Delete the current WARP registration from the panel (WARP modal → "Delete Account"), then create a new one. This re-registers with Cloudflare and stores the `client_id` correctly under v3.3.0. After registering, use the "Refresh" button to fetch the config, then add or reset the outbound. **Information needed to continue** The following is missing from the report: 1. Output of the two `sqlite3` commands above (redact private keys and access tokens as shown). 2. The Xray log output from the `journalctl` command above, or from the panel's log viewer. 3. Whether the failing outbound was created after upgrading to v3.3.0 (new registration) or carried over from a previous version. 4. The exact text of the "failed" status or error message shown in the panel screenshot. Without the Xray logs and the generated config, the root cause cannot be determined from the report as submitted. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@okwebsite commented on GitHub (Jun 11, 2026):

Additional investigation results:

Environment:

  • 3x-ui v3.3.0
  • Xray 26.6.1
  • Ubuntu 24.04 LTS
  • Hetzner Germany

I deleted the old WARP account completely and created a brand new WARP registration on v3.3.0.

The stored WARP credentials contain a valid client_id:

{
"client_id": "rQNk"
}

The generated WireGuard outbound contains valid reserved bytes:

"reserved": [173, 3, 100]

The generated outbound configuration is:

"protocol": "wireguard",
"endpoint": "engage.cloudflareclient.com:2408"

UDP connectivity to the Cloudflare WARP endpoint is working:

nc -vzu engage.cloudflareclient.com 2408
Connection to engage.cloudflareclient.com (2606:4700:d0::a29f:c001) 2408 port [udp/*] succeeded!

Xray version:

Xray 26.6.1 (Xray, Penetrates Everything.)

I also verified that the generated /usr/local/x-ui/bin/config.json contains:

  • inbound tag: in-8787-tcp
  • outbound tag: warp
  • routing rule from in-8787-tcp to warp

The issue remains after:

  1. Deleting the old WARP account.
  2. Creating a new WARP account.
  3. Regenerating the outbound.
  4. Restarting Xray.

The panel still shows the outbound status as failed.

No WireGuard-specific errors appear in Xray logs. The logs only show normal freedom outbound activity.

Based on these tests, the issue does not appear to be related to:

  • missing client_id
  • missing reserved bytes
  • restored old WARP credentials
  • unreachable Cloudflare endpoint
  • missing routing rules

Could this be a regression in the WARP status check logic or WireGuard outbound handling in 3x-ui v3.3.0 with Xray 26.6.1?

<!-- gh-comment-id:4683459080 --> @okwebsite commented on GitHub (Jun 11, 2026): Additional investigation results: Environment: * 3x-ui v3.3.0 * Xray 26.6.1 * Ubuntu 24.04 LTS * Hetzner Germany I deleted the old WARP account completely and created a brand new WARP registration on v3.3.0. The stored WARP credentials contain a valid client_id: { "client_id": "rQNk" } The generated WireGuard outbound contains valid reserved bytes: "reserved": [173, 3, 100] The generated outbound configuration is: "protocol": "wireguard", "endpoint": "engage.cloudflareclient.com:2408" UDP connectivity to the Cloudflare WARP endpoint is working: nc -vzu engage.cloudflareclient.com 2408 Connection to engage.cloudflareclient.com (2606:4700:d0::a29f:c001) 2408 port [udp/*] succeeded! Xray version: Xray 26.6.1 (Xray, Penetrates Everything.) I also verified that the generated /usr/local/x-ui/bin/config.json contains: * inbound tag: in-8787-tcp * outbound tag: warp * routing rule from in-8787-tcp to warp The issue remains after: 1. Deleting the old WARP account. 2. Creating a new WARP account. 3. Regenerating the outbound. 4. Restarting Xray. The panel still shows the outbound status as failed. No WireGuard-specific errors appear in Xray logs. The logs only show normal freedom outbound activity. Based on these tests, the issue does not appear to be related to: * missing client_id * missing reserved bytes * restored old WARP credentials * unreachable Cloudflare endpoint * missing routing rules Could this be a regression in the WARP status check logic or WireGuard outbound handling in 3x-ui v3.3.0 with Xray 26.6.1?
Author
Owner

@MHSanaei commented on GitHub (Jun 11, 2026):

Fixed in 09a887f9 — thank you for the thorough follow-up diagnostics; they ruled out the credential side and pointed at the right place.

Root cause (two compounding defaults in the generated WARP outbound):

  1. domainStrategy: "ForceIP" lets Xray resolve engage.cloudflareclient.com to either address family with no fallback. Your nc output shows the endpoint resolving to IPv6 (2606:4700:d0::a29f:c001) — on a host with partially-configured IPv6 (common on Hetzner), the WireGuard handshake blackholes silently. Note nc -vzu "succeeded" does not prove UDP reachability — UDP connect() succeeds locally unless an ICMP error comes back.
  2. noKernelTun: false makes the real outbound use kernel TUN when running as root (needs CAP_NET_ADMIN + fwmark routing, fails silently on many VPS setups), while the panel's connectivity test always probes with noKernelTun: true (userspace). The status check and your real traffic were exercising different data paths — which is exactly why everything looked valid but nothing connected and nothing was logged.

The fix: panel-generated WARP (and NordVPN) outbounds now use domainStrategy: "ForceIPv4v6" (prefer IPv4, fall back to IPv6 — matching the official WARP client) and noKernelTun: true, so the probe and real traffic follow the same path. Ships in the next release.

Workaround on v3.3.0 right now: edit the warp outbound in the Xray settings and set "domainStrategy": "ForceIPv4v6" and "noKernelTun": true in its settings, then restart Xray. If it still fails after that, the remaining suspect is UDP/2408 egress filtering on the host or upstream.

<!-- gh-comment-id:4684373315 --> @MHSanaei commented on GitHub (Jun 11, 2026): Fixed in 09a887f9 — thank you for the thorough follow-up diagnostics; they ruled out the credential side and pointed at the right place. **Root cause (two compounding defaults in the generated WARP outbound):** 1. `domainStrategy: "ForceIP"` lets Xray resolve `engage.cloudflareclient.com` to either address family with **no fallback**. Your `nc` output shows the endpoint resolving to IPv6 (`2606:4700:d0::a29f:c001`) — on a host with partially-configured IPv6 (common on Hetzner), the WireGuard handshake blackholes silently. Note `nc -vzu` "succeeded" does not prove UDP reachability — UDP connect() succeeds locally unless an ICMP error comes back. 2. `noKernelTun: false` makes the real outbound use **kernel TUN** when running as root (needs CAP_NET_ADMIN + fwmark routing, fails silently on many VPS setups), while the panel's connectivity test always probes with `noKernelTun: true` (userspace). The status check and your real traffic were exercising *different data paths* — which is exactly why everything looked valid but nothing connected and nothing was logged. **The fix:** panel-generated WARP (and NordVPN) outbounds now use `domainStrategy: "ForceIPv4v6"` (prefer IPv4, fall back to IPv6 — matching the official WARP client) and `noKernelTun: true`, so the probe and real traffic follow the same path. Ships in the next release. **Workaround on v3.3.0 right now:** edit the `warp` outbound in the Xray settings and set `"domainStrategy": "ForceIPv4v6"` and `"noKernelTun": true` in its settings, then restart Xray. If it still fails after that, the remaining suspect is UDP/2408 egress filtering on the host or upstream.
Author
Owner

@okwebsite commented on GitHub (Jun 11, 2026):

Thank you for the quick fix and detailed explanation.

I tested the workaround described in commit 09a887f manually on my server.

Changes applied:

  • domainStrategy: ForceIPv4v6
  • noKernelTun: true

After applying the changes I restarted Xray and verified that the active generated configuration contains the updated values.

Additional checks performed:

  • Recreated the WARP account from scratch.
  • Verified that client_id exists.
  • Verified that reserved bytes are generated correctly.
  • Verified that the routing rule to the warp outbound exists.
  • Verified IPv6 connectivity to engage.cloudflareclient.com.
  • Verified that the server has a valid IPv6 default route.
  • Verified UDP 2408 reachability tests.

Despite all of the above, the issue still persists.

Observed behavior:

  • WARP outbound status remains "failed".
  • Attaching the WARP outbound to an inbound causes client traffic to time out.
  • No traffic appears to pass through WARP.
  • Cloudflare trace still reports:
    warp=off

The workaround from commit 09a887f does not resolve the issue in my environment.

Environment:

  • 3x-ui v3.3.0
  • Xray 26.6.1
  • Ubuntu 24.04
  • Hetzner VPS

Please let me know if there are any additional WireGuard/WARP debug steps I can run to help identify the remaining issue.

<!-- gh-comment-id:4685255669 --> @okwebsite commented on GitHub (Jun 11, 2026): Thank you for the quick fix and detailed explanation. I tested the workaround described in commit 09a887f manually on my server. Changes applied: - domainStrategy: ForceIPv4v6 - noKernelTun: true After applying the changes I restarted Xray and verified that the active generated configuration contains the updated values. Additional checks performed: - Recreated the WARP account from scratch. - Verified that client_id exists. - Verified that reserved bytes are generated correctly. - Verified that the routing rule to the warp outbound exists. - Verified IPv6 connectivity to engage.cloudflareclient.com. - Verified that the server has a valid IPv6 default route. - Verified UDP 2408 reachability tests. Despite all of the above, the issue still persists. Observed behavior: - WARP outbound status remains "failed". - Attaching the WARP outbound to an inbound causes client traffic to time out. - No traffic appears to pass through WARP. - Cloudflare trace still reports: warp=off The workaround from commit 09a887f does not resolve the issue in my environment. Environment: - 3x-ui v3.3.0 - Xray 26.6.1 - Ubuntu 24.04 - Hetzner VPS Please let me know if there are any additional WireGuard/WARP debug steps I can run to help identify the remaining issue.
Author
Owner

@okwebsite commented on GitHub (Jun 13, 2026):

Just following up on this issue.

I tested the workaround introduced in commit 09a887f and verified that the generated outbound contains:

  • domainStrategy: ForceIPv4v6
  • noKernelTun: true

I also recreated the WARP account, verified client_id and reserved bytes, confirmed IPv6 connectivity, and verified routing configuration.

Despite these checks, the WARP outbound still remains in the "failed" state and client traffic times out when routed through it.

Could you please advise what additional diagnostics would be useful to determine the remaining cause?

Thank you for your time.

<!-- gh-comment-id:4698835512 --> @okwebsite commented on GitHub (Jun 13, 2026): Just following up on this issue. I tested the workaround introduced in commit 09a887f and verified that the generated outbound contains: - domainStrategy: ForceIPv4v6 - noKernelTun: true I also recreated the WARP account, verified client_id and reserved bytes, confirmed IPv6 connectivity, and verified routing configuration. Despite these checks, the WARP outbound still remains in the "failed" state and client traffic times out when routed through it. Could you please advise what additional diagnostics would be useful to determine the remaining cause? Thank you for your time.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 14, 2026):

Claude finished @MHSanaei's task in 2m 29s —— View job


Context review

The trigger comment contains no specific request, so this is a code-context summary and additional debugging guidance for the remaining environment-specific failure reported by @okwebsite.

What is already fixed in the codebase (09a887f9)

Both fixes are present in the current source:

  • frontend/src/pages/xray/overrides/WarpModal.tsx lines 110–116: new WARP outbounds are generated with domainStrategy: "ForceIPv4v6" and noKernelTun: true.
  • frontend/src/pages/xray/overrides/NordModal.tsx line 215: NordVPN outbounds similarly set noKernelTun: true.
  • internal/web/service/outbound/probe_http.go lines 363–376: the batch test engine forces noKernelTun: true on every wireguard outbound in the temporary Xray instance, so the probe and the real traffic path are now identical.

Why the user's issue persists after the workaround

The user confirmed domainStrategy: "ForceIPv4v6" and noKernelTun: true are set, credentials are correct, and UDP/2408 connectivity tests pass. However, the "failed" panel status and traffic timeout remain.

The most likely remaining causes, in order:

  1. Hetzner egress UDP filtering. The nc -vzu test only verifies that the local socket sent a packet and received no ICMP unreachable back — it does not confirm the WireGuard handshake completed. Hetzner sometimes rate-limits or blocks WireGuard-characteristic UDP traffic on shared plans. The distinguishing test is to look for the handshake response in Xray debug logs (see below), not the nc result.

  2. DNS resolution of the WARP endpoint still picking IPv6. Even with ForceIPv4v6, if the system DNS resolver returns only AAAA records for engage.cloudflareclient.com and the IPv4 path to those addresses is broken, Xray will try the IPv6 address as the fallback. Using a hardcoded IPv4 endpoint eliminates this.

  3. Xray 26.6.1 WireGuard regression. The absence of any WireGuard error in the logs at the default warning log level is not conclusive — WireGuard handshake timeouts are not always logged at warning.

Additional diagnostics for the user

# 1. Enable debug logging temporarily
sudo sqlite3 /etc/x-ui/x-ui.db \
  "UPDATE settings SET value='debug' WHERE key='logLevel';"
# restart x-ui, attempt traffic through warp, then:
journalctl -u x-ui --no-pager -n 200 | grep -i "wireguard\|warp\|handshake\|dial\|udp"

# 2. Bypass DNS entirely — use a hardcoded IPv4 WARP endpoint
# Edit the warp outbound in Xray Settings and change:
#   "endpoint": "engage.cloudflareclient.com:2408"
# to:
#   "endpoint": "162.159.192.1:2408"
# then restart Xray and test again.

# 3. Confirm Hetzner is not filtering the WireGuard handshake
# On the server (after enabling debug logs), check for handshake timeouts:
journalctl -u x-ui -f | grep -i "handshake\|wireguard"
# Initiate traffic through the WARP outbound and watch for:
# - "WireGuard: Handshake for peer ... did not complete after" → UDP blocked upstream
# - No output → Xray never attempted the handshake (routing issue)
# - Handshake complete messages → issue is above WireGuard layer

If the debug logs show no handshake attempts despite routing traffic through the WARP outbound, the routing rule or outbound tag mismatch is the remaining cause. If handshake attempts appear but never complete, Hetzner UDP egress filtering is the cause and no code change will fix it — a different port (WARP also supports engage.cloudflareclient.com:500 and 2408) or a different network path is needed.

@MHSanaei — if there is a specific code change you would like me to implement (for example, adding a hardcoded-IPv4 fallback endpoint option, or surfacing handshake errors more prominently), please describe it and I can implement it.

<!-- gh-comment-id:4701991976 --> @github-actions[bot] commented on GitHub (Jun 14, 2026): **Claude finished @MHSanaei's task in 2m 29s** —— [View job](https://github.com/MHSanaei/3x-ui/actions/runs/27501363963) --- ### Context review The trigger comment contains no specific request, so this is a code-context summary and additional debugging guidance for the remaining environment-specific failure reported by @okwebsite. **What is already fixed in the codebase (09a887f9)** Both fixes are present in the current source: - `frontend/src/pages/xray/overrides/WarpModal.tsx` lines 110–116: new WARP outbounds are generated with `domainStrategy: "ForceIPv4v6"` and `noKernelTun: true`. - `frontend/src/pages/xray/overrides/NordModal.tsx` line 215: NordVPN outbounds similarly set `noKernelTun: true`. - `internal/web/service/outbound/probe_http.go` lines 363–376: the batch test engine forces `noKernelTun: true` on every wireguard outbound in the temporary Xray instance, so the probe and the real traffic path are now identical. **Why the user's issue persists after the workaround** The user confirmed `domainStrategy: "ForceIPv4v6"` and `noKernelTun: true` are set, credentials are correct, and UDP/2408 connectivity tests pass. However, the "failed" panel status and traffic timeout remain. The most likely remaining causes, in order: 1. **Hetzner egress UDP filtering.** The `nc -vzu` test only verifies that the local socket sent a packet and received no ICMP unreachable back — it does not confirm the WireGuard handshake completed. Hetzner sometimes rate-limits or blocks WireGuard-characteristic UDP traffic on shared plans. The distinguishing test is to look for the handshake response in Xray debug logs (see below), not the `nc` result. 2. **DNS resolution of the WARP endpoint still picking IPv6.** Even with `ForceIPv4v6`, if the system DNS resolver returns only AAAA records for `engage.cloudflareclient.com` and the IPv4 path to those addresses is broken, Xray will try the IPv6 address as the fallback. Using a hardcoded IPv4 endpoint eliminates this. 3. **Xray 26.6.1 WireGuard regression.** The absence of any WireGuard error in the logs at the default `warning` log level is not conclusive — WireGuard handshake timeouts are not always logged at warning. **Additional diagnostics for the user** ```bash # 1. Enable debug logging temporarily sudo sqlite3 /etc/x-ui/x-ui.db \ "UPDATE settings SET value='debug' WHERE key='logLevel';" # restart x-ui, attempt traffic through warp, then: journalctl -u x-ui --no-pager -n 200 | grep -i "wireguard\|warp\|handshake\|dial\|udp" # 2. Bypass DNS entirely — use a hardcoded IPv4 WARP endpoint # Edit the warp outbound in Xray Settings and change: # "endpoint": "engage.cloudflareclient.com:2408" # to: # "endpoint": "162.159.192.1:2408" # then restart Xray and test again. # 3. Confirm Hetzner is not filtering the WireGuard handshake # On the server (after enabling debug logs), check for handshake timeouts: journalctl -u x-ui -f | grep -i "handshake\|wireguard" # Initiate traffic through the WARP outbound and watch for: # - "WireGuard: Handshake for peer ... did not complete after" → UDP blocked upstream # - No output → Xray never attempted the handshake (routing issue) # - Handshake complete messages → issue is above WireGuard layer ``` If the debug logs show no handshake attempts despite routing traffic through the WARP outbound, the routing rule or outbound tag mismatch is the remaining cause. If handshake attempts appear but never complete, Hetzner UDP egress filtering is the cause and no code change will fix it — a different port (WARP also supports `engage.cloudflareclient.com:500` and `2408`) or a different network path is needed. @MHSanaei — if there is a specific code change you would like me to implement (for example, adding a hardcoded-IPv4 fallback endpoint option, or surfacing handshake errors more prominently), please describe it and I can implement it.
Author
Owner

@okwebsite commented on GitHub (Jun 14, 2026):

Thank you for the detailed analysis.

I have now completed all of the suggested checks and the issue still persists.

Environment:

  • x-ui with Xray 26.6.1
  • Hetzner VPS
  • WARP outbound created from the x-ui panel
  • noKernelTun: true
  • domainStrategy: "ForceIPv4v6"
  • Endpoint is already set to the direct Cloudflare IP (162.159.192.1:2408) instead of engage.cloudflareclient.com
  • Configuration validation passes successfully (Configuration OK)

What I verified:

  1. The WARP outbound is present in the generated config:

"tag": "warp",
"protocol": "wireguard"

  1. The routing rule is correctly generated:

{
"type": "field",
"inboundTag": ["in-8787-tcp"],
"outboundTag": "warp"
}

  1. The inbound tag exists and matches:

"port": 8787,
"tag": "in-8787-tcp"

  1. Xray starts normally with no configuration errors:

/usr/local/x-ui/bin/xray-linux-amd64 run -test -config /usr/local/x-ui/bin/config.json

Result:

Configuration OK.

  1. Server connectivity is normal when WARP is not used.
    As soon as I remove the WARP routing rule, the same inbound works immediately and clients connect successfully.

Current behavior:

  • The outbound test in the x-ui panel always shows:

failed

  • If I attach the WARP outbound to inbound 8787, all client connections time out and no traffic passes.
  • If I remove the WARP rule, the exact same client configuration works normally again.

Important observation:

The issue is not limited to the outbound test UI. Real client traffic also fails whenever the WARP outbound is selected.

At this point:

  • Routing rule generation appears correct.
  • Inbound tag and outbound tag match correctly.
  • noKernelTun is enabled.
  • ForceIPv4v6 is enabled.
  • Direct IPv4 endpoint is used.
  • Configuration validation succeeds.

Despite all of the above, the outbound remains in failed state and any inbound routed through WARP becomes unusable (connection timeout).

So there still seems to be a problem either in the WireGuard/WARP outbound itself, the outbound probing logic, or the actual WireGuard handshake/runtime path, because the configuration appears correct but traffic cannot pass through the WARP outbound.

If there is any additional debug logging specifically for the WireGuard outbound or handshake process that you would like me to collect, I can provide it.

<!-- gh-comment-id:4702648693 --> @okwebsite commented on GitHub (Jun 14, 2026): Thank you for the detailed analysis. I have now completed all of the suggested checks and the issue still persists. Environment: * x-ui with Xray 26.6.1 * Hetzner VPS * WARP outbound created from the x-ui panel * noKernelTun: true * domainStrategy: "ForceIPv4v6" * Endpoint is already set to the direct Cloudflare IP (162.159.192.1:2408) instead of engage.cloudflareclient.com * Configuration validation passes successfully (Configuration OK) What I verified: 1. The WARP outbound is present in the generated config: "tag": "warp", "protocol": "wireguard" 2. The routing rule is correctly generated: { "type": "field", "inboundTag": ["in-8787-tcp"], "outboundTag": "warp" } 3. The inbound tag exists and matches: "port": 8787, "tag": "in-8787-tcp" 4. Xray starts normally with no configuration errors: /usr/local/x-ui/bin/xray-linux-amd64 run -test -config /usr/local/x-ui/bin/config.json Result: Configuration OK. 5. Server connectivity is normal when WARP is not used. As soon as I remove the WARP routing rule, the same inbound works immediately and clients connect successfully. Current behavior: * The outbound test in the x-ui panel always shows: failed * If I attach the WARP outbound to inbound 8787, all client connections time out and no traffic passes. * If I remove the WARP rule, the exact same client configuration works normally again. Important observation: The issue is not limited to the outbound test UI. Real client traffic also fails whenever the WARP outbound is selected. At this point: * Routing rule generation appears correct. * Inbound tag and outbound tag match correctly. * noKernelTun is enabled. * ForceIPv4v6 is enabled. * Direct IPv4 endpoint is used. * Configuration validation succeeds. Despite all of the above, the outbound remains in failed state and any inbound routed through WARP becomes unusable (connection timeout). So there still seems to be a problem either in the WireGuard/WARP outbound itself, the outbound probing logic, or the actual WireGuard handshake/runtime path, because the configuration appears correct but traffic cannot pass through the WARP outbound. If there is any additional debug logging specifically for the WireGuard outbound or handshake process that you would like me to collect, I can provide it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3650
No description provided.