Are you an LLM? You can read better optimized documentation at /en\wiki\TProxy-TCP-UDP.md for this page in Markdown format
TProxy
TProxy is a Linux transparent-proxy mechanism. It intercepts traffic while preserving the original destination address, so an application does not need to point directly at a proxy listener.
TCP and UDP
TProxy can handle both TCP and UDP. Linux policy routing sends marked packets to the local proxy, which then decides the outbound route.
Configuration outline
Enable the required kernel support, configure packet marking in the firewall, add an ip rule and local route for those marked packets, and configure a Mihomo tproxy-port. Exact commands depend on the distribution, firewall framework and interface layout. Avoid routing the proxy's own outbound traffic back into the listener.
See inbound settings for the Clash side of the configuration.
