Are you an LLM? You can read better optimized documentation at /en\tutorial\inbound.md for this page in Markdown format
Inbound Settings
An inbound determines how traffic enters Clash. One profile can expose several local listeners.
Configuration
yaml
port: 7890 # HTTP(S) proxy
socks-port: 7891 # SOCKS5 proxy
mixed-port: 7892 # HTTP(S) and SOCKS on one port
# redir-port: 7893 # Transparent TCP redirect
# tproxy-port: 7894 # Linux transparent TCP/UDP proxy
allow-lan: false # Keep listeners local by defaultMixed port
mixed-port accepts both HTTP(S) and SOCKS connections, making it convenient when different applications use different proxy protocols.
Redirect, TProxy and TUN
Redirect and TProxy intercept traffic without configuring each application. TProxy also handles UDP on Linux. TUN works at the virtual network interface level. These modes require suitable operating-system routing and permissions. Clash does not assign a separate rule list to each inbound; routing rules apply to the resulting traffic.
