Skip to content

mixed (inbound only) ​

An HTTP proxy and SOCKS4/4a/5 on one port. The protocol is determined by the first byte: 4 and 5 are SOCKS, anything else is HTTP. Compatible with sing-box mixed.

The capabilities are those of the http inbound (CONNECT, forward requests, Basic) and the socks inbound (CONNECT, SOCKS5 UDP ASSOCIATE, UDP-over-TCP). One users list applies to both protocols; on reload a change of users is applied without rebuilding the inbound.

FieldTypeDefaultMeaning
userslist of {username, password}—Accounts; without the list the inbound is open. A name does not repeat: HTTP takes one password per name

Socket settings are the listener block; udp.timeout applies to UDP ASSOCIATE. Takes the tls block; SOCKS over TLS is not supported, and such a connection is closed with the error SOCKS over TLS on a mixed inbound is not supported.

Not supported: set_system_proxy, domain_resolver (not implemented yet).

Example ​

yaml
inbounds:
  local:
    mixed:
      listen: 127.0.0.1:1080
      users:
        - username: user
          password: pass
    listener:
      udp:
        timeout: 2m
outbounds:
  direct:
    direct:
route:
  final:
    outbound: direct

Minimal:

yaml
inbounds:
  local:
    mixed:
      listen: 127.0.0.1:1080
outbounds:
  direct:
    direct:
route:
  final:
    outbound: direct

GPL-3.0-or-later