Inbounds and traffic entry
An inbound accepts traffic before Yuhaiin applies routing decisions. Open Traffic entry → Inbounds to manage them.
Simple presets
Section titled “Simple presets”| Source | Initial address | Meaning |
|---|---|---|
Backend first-run mixed inbound |
127.0.0.1:1080, enabled |
The listener already present on a clean installation |
| React New → Local preset | 127.0.0.1:9002 |
An additional Mixed listener you explicitly create |
| React New → LAN preset | 0.0.0.0:9002 |
An additional Mixed listener exposed to the local network |
| React New → TUN preset | No HTTP/SOCKS listen port | Virtual interface and IP routes |
Do not create a second inbound just to follow a guide when the first-run mixed listener already works. The backend and React preset have different initial values by design in the current source; the saved inbound and its runtime state determine what actually listens.
The preset is editable: read the actual address and port after saving, rather than assuming your system has the default.
Advanced inbound model
Section titled “Advanced inbound model”The backend represents an inbound with four main parts:
network: socket or transport listener, such astcp_udp,quicorempty.transports: zero or more optional layers, such as TLS, Reality, WebSocket or HTTP/2.protocol: the application protocol, such asmixed,http,socks5,yuubinsya,hysteria2,tun,redirortproxy.enabled: whether it should run.
These are separate components, so a protocol may have network and transport requirements. For example, a TUN inbound uses network.type: "empty".
Do not expose an unauthenticated inbound to the public internet. Review Security and the configuration model.
What does “enabled” actually mean?
Section titled “What does “enabled” actually mean?”enabled: true records the desired state of an inbound. It does not guarantee that the socket successfully bound. A conflicting port, missing permissions or invalid transport configuration can leave an enabled inbound unavailable. Check the listener’s runtime status and error/event details, then retry only after correcting the cause.
The React client separates the saved model from runtime inspection: listInbounds() retrieves configuration, while listInboundStatuses(), listInboundEvents(id) and retryInbound(id) inspect or retry a running listener. The backend persists typed inbounds in the inbounds_v2 table, and loads them during startup.
Advanced: network, transport and protocol
Section titled “Advanced: network, transport and protocol”The Inbound contract separates network (where packets arrive), transports (optional wire framing), and protocol (how a client request is interpreted). For Mixed over TCP/UDP, network.type is tcp_udp, network.tcp_udp.host is the bind address, and protocol.type is mixed.
Binding to 127.0.0.1 confines access to the local host. Binding to 0.0.0.0 accepts connections on all IPv4 interfaces; without authentication and firewall restrictions, this can become an open proxy. See Local vs LAN and Advanced inbounds.
Authenticate individual users
Section titled “Authenticate individual users”Supported HTTP, SOCKS5, Mixed, Yuubinsya, Hysteria2 and SSTP listeners can explicitly accept per-user traffic credentials. See Credentials for user-only, mixed and legacy modes, then Traffic Access for destination authorization. TUN and other protocols cannot infer a user identity from an address alone.
For Linux-only public-key SSH sessions with isolated networking, see experimental SSH inbound. It uses its own identity and is not a general security sandbox.