Live-streaming problems are easy to misdiagnose. OBS may show dropped frames even when the preview looks smooth, and a stream can have a stable upload rate but still suffer from extra latency or periodic disconnects. When Clash is running, the cause may be the route chosen for OBS, the way traffic enters the proxy core, a busy proxy node, or an upload connection that was already close to its limit.
A reliable setup starts by separating three questions: does OBS traffic reach Clash, which rule and proxy group handle it, and does the selected route have enough capacity for the stream? The answers vary by client, operating system, streaming protocol, and service. A system proxy setting alone does not guarantee that OBS uses Clash, while enabling TUN can capture more traffic but may also change how other applications connect.
Clash for Streamers: Tune OBS Routes for Stable Live Video
Understand how OBS traffic reaches Clash
Clash offers different ways to receive traffic. A desktop client’s system proxy setting configures the operating system’s HTTP and HTTPS proxy for applications that honor those settings. Browsers commonly do; other applications may ignore them, use their own proxy configuration, or connect directly. OBS output is not automatically guaranteed to follow the system proxy, particularly when a service uses RTMP, RTMPS, or another streaming protocol.
TUN creates a virtual network interface and can route traffic from applications that do not use an HTTP proxy. It is often the more relevant test when OBS is absent from Clash’s connection list, but it is not a universal fix. TUN requires the appropriate permissions and a compatible core and client. Its DNS behavior, route exclusions, and operating-system integration can affect whether a connection is captured and how its destination is identified.
| Traffic path | What it can capture | What to check |
|---|---|---|
| System proxy | Applications that honor the operating system’s proxy settings | Whether OBS appears in Clash’s connection log and whether the streaming protocol supports the configured proxy path |
| TUN | More application traffic, including direct connections, subject to routes and permissions | Whether TUN is active, the OBS connection appears in the log, and DNS and route settings are working as expected |
| Direct connection | Traffic that is not sent through a proxy group | Whether the local network can reach the selected ingest server reliably without a proxy |
Start by identifying OBS’s actual output destination rather than assuming that a streaming service uses one fixed address. The ingest host can vary by region, service, selected server, protocol, and account settings. OBS may also make separate connections for browser docks, chat, authentication, and stream output. A working browser or successful login therefore does not prove that the video upload follows the same route.
Open Clash’s connection view, start a short private or unlisted test stream, and look for new connections while OBS is sending video. Record the destination domain or IP address, destination port, matched rule, and selected policy group. If no related connection appears, test the traffic path before changing proxy nodes: confirm whether system proxy or TUN is enabled, whether the core is running, and whether another VPN or proxy is competing for the same traffic.
Choose a route for live video
There is no single best policy for every creator. A direct route can minimize extra hops when the service is reachable and stable from the local network. A proxy route may help when the direct path cannot reliably reach the platform or ingest endpoint. A proxy can also add latency, reduce available upload capacity, or introduce congestion. Compare routes using the same OBS settings and a similar test duration rather than judging by a node’s latency measurement alone.
In rule mode, Clash evaluates rules from top to bottom. A matching rule forwards the connection to a policy, such as a proxy group or DIRECT. If a broad rule catches OBS before a more specific streaming rule, changing the later rule will have no effect. Confirm the matched rule in the connection log and check the order of any rules you add or inherit from a subscription.
| Routing approach | Useful when | Trade-off |
|---|---|---|
| Route all OBS traffic through a streaming group | OBS output and its related connections need a consistent proxy policy | Also affects OBS browser sources, docks, and other connections; a slow node can degrade the whole application |
| Route known ingest destinations by domain or IP | The connection log reveals stable, service-specific destinations that can be matched accurately | Ingest addresses can change; an IP may be shared, and domain information may not always be available to the rule matcher |
| Leave OBS direct | The local route reaches the service reliably and proxying adds delay or reduces upload capacity | It will not solve a direct-path block or unstable route to the ingest endpoint |
A process rule can be convenient when the goal is to route OBS broadly. Mihomo configurations commonly support process-name matching, but support and behavior depend on the core, operating system, and client. Use the exact executable name shown by the system, and verify the result in the connection log. A rule that matches the OBS process may affect more than the stream itself.
# Illustrative rule placement; verify syntax and process matching
# against the active Mihomo core and operating system.
rules:
- PROCESS-NAME,OBS.exe,Streaming
- MATCH,Proxy
The example assumes a policy group named Streaming already exists. It is not a complete configuration and should not be pasted over a subscription’s rules. On macOS or Linux, the process name will differ; some clients also generate or merge rules in a way that can override manual edits. If the rule does not match, inspect the effective configuration and the log rather than repeatedly changing the rule text.
Do not route by port alone unless the connection evidence supports it. RTMP commonly uses TCP port 1935, while RTMPS often uses TCP port 443. Port 443 also carries ordinary HTTPS traffic, so sending every connection on that port through a streaming policy would affect far more than OBS. Other streaming modes can use different ports and transport protocols. Prefer a verified process or destination match, and keep broad port rules out of the configuration unless their wider impact is intended.
Run a controlled streaming test
Test in the middle of the setup process, before committing to a route for a scheduled broadcast. Keep the test short and use the same encoder, resolution, frame rate, bitrate, and ingest service when comparing direct and proxied paths. Changing several settings at once makes it difficult to tell whether the improvement came from the route or from a lighter video workload.
- Record the baseline. Note the OBS output resolution, frame rate, encoder, bitrate, selected service, and ingest server. In OBS, open View → Stats and watch dropped frames, rendering lag, and encoding lag separately.
- Test the direct route. With the existing Clash route unchanged for other applications, temporarily set the OBS policy to
DIRECTif the configuration allows it. Stream privately or use the service’s test mode for several minutes. Confirm in the Clash log that the connection actually matched the direct policy. - Test one proxy route. Select a stable node in the streaming policy group, restart the test stream, and observe the same OBS statistics. Do not compare different ingest servers or change the bitrate between tests.
- Check capacity and consistency. Compare the configured video bitrate with upload capacity during the test, not just a single speed-test result. As a practical starting point, an 8 Mbps stream needs more than 8 Mbps of sustained available upload because audio, protocol overhead, other devices, and network variation also consume capacity.
- Keep the better verified policy. Use the route that maintains stable delivery with acceptable latency and headroom. If neither path is stable, test a different ingest server or reduce bitrate before adding more complex rules.
For a repeatable comparison, run each route for a similar period—five to ten minutes is a useful initial test window—and note the time of any interruption. Short tests can miss congestion that appears only after the upload has been active for a while. A private test stream also avoids using a public broadcast as a diagnostic tool.
Diagnose dropped frames, latency, and instability
OBS’s Stats window separates several problems that can look similar on stream. Network-dropped frames indicate that OBS could not deliver data reliably to the service. Rendering lag means the computer is struggling to render frames, often because the GPU is overloaded. Encoding lag points to an encoder that cannot keep up with the chosen settings. A proxy change is relevant to network drops, but is unlikely to fix rendering or encoding overload.
- Network drops increase on a proxy route: Check the selected node’s sustained upload performance, not only its displayed ping. Try a different node or compare with
DIRECT. Confirm that another broad rule is not sending OBS through a slower group. - Network drops occur on both routes: Check local upload congestion, Wi-Fi quality, competing uploads, and the ingest server. Test with a lower bitrate and, where practical, a wired connection. If the lower bitrate stabilizes delivery, the original stream did not have enough sustained headroom.
- OBS shows no connection in Clash: Verify that the test connection is new, then check TUN status, permissions, route exclusions, and whether OBS is using a direct network path. A system proxy toggle alone may not capture the stream connection.
- Stream connects but latency grows: A route may have enough capacity to start but still experience queuing or intermittent congestion. Compare a different node and the direct path, and check whether the service’s ingest server changed between tests.
- Rendering or encoding lag rises: Reduce output resolution or frame rate, select an encoder that the hardware can handle, or lower encoder complexity. Use OBS’s statistics to confirm that the issue is not network delivery before changing Clash rules.
Connection logs are useful, but an established connection is not proof of a healthy stream. Check whether the destination and policy match the intended route, then correlate the log with OBS’s dropped-frame counter and the time of the problem. If the route changes but the log still shows the previous policy, inspect rule order, group selection, and whether the active configuration was reloaded.
Be cautious when using destination-IP rules for streaming services. Ingest endpoints can rotate, and different services may share hosting or address ranges. A hand-maintained IP rule can stop matching after a service changes its infrastructure, or unintentionally match unrelated traffic. Use domain or process matching where it is reliable, keep any IP-specific rules narrowly scoped, and revisit them when the observed destination changes.
Prepare a stable broadcast profile
Once testing identifies a dependable route, make the configuration easy to verify before each broadcast. Give the relevant policy group a clear name, keep the OBS rule ahead of any broad fallback that would capture it first, and avoid editing a subscription-generated file that will be overwritten on update. Use the client’s supported override or merge feature when available, then reload the configuration and confirm the effective rule in the connection log.
Before going live, check that the selected node is available, the expected policy group is selected, and OBS is connecting to the intended ingest destination. Confirm that upload headroom remains adequate and that no other device is saturating the connection. If you changed TUN settings, verify that they remain active after restarting the client or computer; a permission prompt or service failure can leave the interface disabled without an obvious change to OBS.
Keep a short record of the route, node, ingest server, OBS bitrate, and any observed drops from each test. This makes a later regression easier to isolate: if OBS settings and the destination are unchanged but drops begin after a node change, the route is a stronger suspect; if drops begin after raising the bitrate, upload headroom deserves attention first. Re-test after major subscription, core, client, or network changes instead of assuming that an old route remains optimal.