Skip to content
Edit this page

HTTP & Mixed Inbounds

ClashRS supports standalone HTTP proxies (http) and combined HTTP + SOCKS5 proxies (mixed) on a single TCP port.

HTTP Inbound (type: http)

  • Transport: TCP only (supports both plain HTTP proxy requests and CONNECT tunneling for HTTPS).
  • Authentication: Uses top-level authentication via HTTP Basic Proxy-Authorization.
  • Type-specific fields: None beyond common listener fields.
port: 7890
bind-address: 127.0.0.1
allow-lan: false
authentication:
  - "alice:secret123"
listeners:
  - name: http-in
    type: http
    listen: 127.0.0.1
    port: 7890
    allow-lan: false

Mixed Inbound (type: mixed)

The mixed listener peeks at the first byte of each incoming TCP connection:

  • If the first byte is 0x05, the connection is handled as SOCKS5 (including UDP_ASSOCIATE).
  • Otherwise, the connection is handled as an HTTP proxy request.

  • Authentication: Uses top-level authentication for both HTTP and SOCKS5 clients.

  • Type-specific fields:
  • udp (bool, optional, default true): Accepted for schema compatibility. At runtime, SOCKS5 UDP_ASSOCIATE is always available over the SOCKS5 handshake.
mixed-port: 7890
bind-address: 127.0.0.1
allow-lan: false
listeners:
  - name: mixed-in
    type: mixed
    listen: 0.0.0.0
    port: 7890
    allow-lan: true
    udp: true