[GH-ISSUE #5860] [Bug]: Freedom ping test in the outbound section #4071

Closed
opened 2026-10-31 20:36:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arashammm on GitHub (Jul 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5860

Describe the bug

Hello there,

Thank you for you continuous effort in this porject.

In previous veriosn we were able to ping and health-check outbounds with freedom type. (v 2.x)

In the current major version this feature is no longer avaible for freedom types. Bear in mind that sometimes we configure tunnels and interface outside the 3x-ui environment and want to direct traffic towards that interface using freedom outbound and we were able to check ping for those outbounds.

Please bring this back in future updates.

How to reproduce the problem

1.go to outbound section in the new panel.
2. create a new outbound with freedom type
3. try to ping it using the probe icon.

Expected behavior

Older version behavior:

Image

Actual behavior

Current panel behavior:

Image

Relevant logs


Screenshots

No response

3x-ui version

3.4.2

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

ubuntu

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 @arashammm on GitHub (Jul 8, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5860 ### Describe the bug Hello there, Thank you for you continuous effort in this porject. In previous veriosn we were able to ping and health-check outbounds with freedom type. (v 2.x) In the current major version this feature is no longer avaible for freedom types. Bear in mind that sometimes we configure tunnels and interface outside the 3x-ui environment and want to direct traffic towards that interface using freedom outbound and we were able to check ping for those outbounds. Please bring this back in future updates. ### How to reproduce the problem 1.go to outbound section in the new panel. 2. create a new outbound with freedom type 3. try to ping it using the probe icon. ### Expected behavior Older version behavior: <img width="1089" height="87" alt="Image" src="https://github.com/user-attachments/assets/32c77d3e-b110-4996-b85c-fe7c95dae403" /> ### Actual behavior Current panel behavior: <img width="1111" height="87" alt="Image" src="https://github.com/user-attachments/assets/b25dea07-b864-4251-979b-cb6c977d182b" /> ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.2 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system ubuntu ### 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:36:55 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 8, 2026):

This is current, intentional behavior in 3.4.2, not a defect in the ping logic itself — freedom (and dns) outbounds are explicitly excluded from the probe feature in every mode:

  • internal/web/service/outbound/outbound.go:163-165 (TCP-mode probe): outbounds with protocol == "freedom" short-circuit to "Outbound has no testable endpoint".
  • internal/web/service/outbound/probe_http.go:179-182 (HTTP/"real"-mode probe): protocol == "freedom" || protocol == "dns" short-circuits to "Direct/DNS outbound cannot be tested".
  • frontend/src/pages/xray/outbounds/outbounds-tab-helpers.ts:37-45 (isUntestable): the probe icon itself is disabled in the UI for Freedom and DNS protocols.

The rationale documented in the code is that freedom/dns "aren't proxies" — a bare TCP dial has no fixed remote endpoint to target, and an HTTP probe through a plain freedom outbound would just measure the panel host's own direct internet reachability rather than a tunnel, so the current implementation treats them as universally untestable.

Your use case — a freedom outbound configured with a specific egress target (e.g. via the redirect setting in FreedomOutboundSettingsSchema, frontend/src/schemas/protocols/outbound/freedom.ts:54) pointing at a local tunnel/interface — isn't handled by that blanket rule, since a redirect-targeted freedom outbound does have a concrete endpoint worth pinging. Confirmed in extractOutboundEndpoints (internal/web/service/outbound/outbound.go:239 onward): it has per-protocol cases for building a testable endpoint (vmess, vless, trojan, shadowsocks, http, socks, wireguard, hysteria), but no case for freedom/its redirect field, so even if the blanket exclusion were lifted, redirect-based endpoint extraction would need to be added for this to work end-to-end.

This looks like a legitimate gap for the redirect-target case rather than something to bring back unconditionally for all freedom outbounds (a plain freedom outbound with no redirect genuinely has nothing to ping). I'm labeling it as an enhancement request; a maintainer would need to decide whether to scope pinging to redirect-configured freedom outbounds specifically.

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

<!-- gh-comment-id:4915165861 --> @github-actions[bot] commented on GitHub (Jul 8, 2026): This is current, intentional behavior in 3.4.2, not a defect in the ping logic itself — `freedom` (and `dns`) outbounds are explicitly excluded from the probe feature in every mode: - `internal/web/service/outbound/outbound.go:163-165` (TCP-mode probe): outbounds with `protocol == "freedom"` short-circuit to `"Outbound has no testable endpoint"`. - `internal/web/service/outbound/probe_http.go:179-182` (HTTP/"real"-mode probe): `protocol == "freedom" || protocol == "dns"` short-circuits to `"Direct/DNS outbound cannot be tested"`. - `frontend/src/pages/xray/outbounds/outbounds-tab-helpers.ts:37-45` (`isUntestable`): the probe icon itself is disabled in the UI for `Freedom` and `DNS` protocols. The rationale documented in the code is that `freedom`/`dns` "aren't proxies" — a bare TCP dial has no fixed remote endpoint to target, and an HTTP probe through a plain `freedom` outbound would just measure the panel host's own direct internet reachability rather than a tunnel, so the current implementation treats them as universally untestable. Your use case — a `freedom` outbound configured with a specific egress target (e.g. via the `redirect` setting in `FreedomOutboundSettingsSchema`, `frontend/src/schemas/protocols/outbound/freedom.ts:54`) pointing at a local tunnel/interface — isn't handled by that blanket rule, since a `redirect`-targeted `freedom` outbound does have a concrete endpoint worth pinging. Confirmed in `extractOutboundEndpoints` (`internal/web/service/outbound/outbound.go:239` onward): it has per-protocol cases for building a testable endpoint (vmess, vless, trojan, shadowsocks, http, socks, wireguard, hysteria), but no case for `freedom`/its `redirect` field, so even if the blanket exclusion were lifted, `redirect`-based endpoint extraction would need to be added for this to work end-to-end. This looks like a legitimate gap for the `redirect`-target case rather than something to bring back unconditionally for all `freedom` outbounds (a plain `freedom` outbound with no `redirect` genuinely has nothing to ping). I'm labeling it as an enhancement request; a maintainer would need to decide whether to scope pinging to `redirect`-configured `freedom` outbounds specifically. *This reply was generated automatically; a maintainer may follow up.*
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#4071
No description provided.