Linux: first setup
On Linux, start with a local application proxy. TUN, transparent redirect and TPROXY are more involved because they can alter routing and firewall state.
Download and run
Section titled “Download and run”Choose a release for your CPU from the official release list. For a typical 64-bit Intel/AMD system use a Linux amd64 build; for many ARM systems use arm64. Rename the executable to yuhaiin, then:
chmod +x ./yuhaiin./yuhaiin -host 127.0.0.1:50051Open http://127.0.0.1:50051 on the same device. To keep configuration in a specific directory use -path /path/to/data; keep that directory private.
Route a single app
Section titled “Route a single app”-
Create a Direct or proxy node and select it in Home.
-
Confirm the already-enabled mixed inbound listens on
127.0.0.1:1080on a fresh installation. If you have edited or migrated the configuration, use the address shown under Traffic entry → Inbounds. -
Run a simple request through that inbound:
curl --proxy http://127.0.0.1:1080 https://example.com/ -
Open Monitoring → Connections. If the request succeeds and a connection appears, the application-to-Yuhaiin path works.
On desktop environments, Settings → Configuration → System proxy integration may configure supported desktop proxy settings. Headless apps, containers and command-line tools may ignore those settings.
TUN or transparent proxy
Section titled “TUN or transparent proxy”Only after the local test succeeds, consult TUN or Advanced inbounds. On Linux, these modes can require /dev/net/tun, privileges, firewall policy or routing tables. Container networking requires separate planning.
Service operation
Section titled “Service operation”The backend repository includes a systemd unit example. Review and adapt its executable path, service user and storage directory; do not blindly paste an example unit that points to a different system’s filesystem.
If routes fail, disable the TUN inbound and follow Recovery. Do not repeatedly restart a broken transparent-proxy rule without removing the underlying firewall configuration.