mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5644] [Question]: sniffing #3933
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#3933
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 @RezaHaghgoo on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5644
What are you trying to do?
what is the function of "sniffing" in configs and its relation to configs' incompatibility when connecting to different internet operators?
What have you already tried?
No response
3x-ui version
3.3.0
How did you install 3x-ui?
install.sh script
Operating system
No response
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 28, 2026):
Sniffing is an Xray-core feature that instructs Xray to inspect the first bytes of each incoming connection and infer the application-layer protocol before routing it. The 3x-ui panel exposes it on the Sniffing tab of every inbound (all protocols except MTProto, confirmed in `frontend/src/lib/xray/protocol-capabilities.ts`).
What it does
When sniffing is enabled, Xray reads the start of the payload and attempts to identify the protocol and, critically, the target hostname:
After extracting the domain, Xray substitutes it as the connection's destination address so that the routing engine can match domain-based rules. Without sniffing, a connection that arrived as a raw IP would only match IP-based rules, not domain-based ones.
Configurable options (defined in `frontend/src/schemas/primitives/sniffing.ts`):
enabledfalsedestOverride["http","tls","quic","fakedns"]metadataOnlyfalserouteOnlyfalseipsExcluded[]domainsExcluded[]Relation to operator-specific incompatibility
Sniffing operates entirely inside Xray on the server side after the connection is already established. It does not alter how the client connects, does not change the TLS handshake or the SNI visible on the wire, and does not modify the transport. It therefore has no direct effect on whether a connection succeeds or fails from different ISPs or mobile operators.
Operator-level incompatibility (connections that work on some networks but not others) is caused by factors at the network layer, not by sniffing: IP or port blocking, DPI fingerprinting of TLS or WebSocket patterns, SNI-based filtering, or differences in how each carrier routes traffic to your server.
The only indirect way sniffing could appear to affect compatibility is if you have routing rules on the server that send certain domains through a specific outbound (e.g., blocking or routing domestic traffic differently). If sniffing is disabled, domain-based routing rules cannot match traffic that arrived by IP, so they fall through to the default outbound — which may behave differently than expected.
If the operator-compatibility issue you mentioned relates to your Tunnel → VLESS+WS+TLS setup, the causes and mitigations were described in the response to your previous question #5641.
This reply was generated automatically; a maintainer may follow up.