Troubleshooting August 21, 2026

Fix YouTube Buffering With Clash: Troubleshoot Slow Playback

Learn how to fix YouTube buffering, timeouts, and failed video loads in Clash. Check the active mode, node quality, DNS behavior, and routing rules before switching to advanced TUN troubleshooting.

Docker Proxy GitHub Acceleration Advanced Config YAML

1. Start with the symptom, not the YAML

You are watching a YouTube video that should play normally, yet the progress indicator stops every few seconds, the quality drops to 144p, or the player reports “Something went wrong.” In other cases, the page opens but the video never begins, the thumbnail remains blank, or a live stream disconnects after several minutes. When Clash is enabled, it is tempting to change several rules at once or switch to a different subscription immediately. That usually removes the evidence you need.

YouTube playback is not one simple connection. The browser may load the page from youtube.com, request thumbnails and scripts from Google-owned asset domains, fetch video segments from a separate delivery host, resolve player metadata through another endpoint, and maintain a long-lived connection for chat or live-stream status. A single failed hostname can therefore look like a general buffering problem even when the selected proxy node is fast for ordinary web pages.

This guide focuses on Clash and Mihomo-compatible clients such as Clash Verge, Clash Verge Rev, and Clash for Android. The troubleshooting order is deliberate: confirm that Clash is active, verify the selected mode, test the node itself, inspect DNS behavior, and then review routing rules. Only after those checks should you move to advanced TUN, fake-IP, or IPv6 investigation.

Before making a change, write down four observations: the video URL, the selected node, the playback quality, and whether the same video works with Clash disabled. Also note whether the failure affects every video or only a particular channel, region, or live stream. A narrow failure often points to routing or DNS. A failure across every site is more likely to involve the node, local network, client mode, or a system-wide proxy conflict.

2. Verify the active mode and proxy path

The first question is simple: is the browser’s traffic actually passing through Clash? A client can appear open in the system tray while the selected profile is stopped, the system proxy is disabled, or the browser is using a manually configured proxy that points somewhere else. On the other hand, TUN mode can capture traffic that the normal system proxy does not, which means a test performed in one mode may not explain behavior in another.

Open the client’s dashboard and check the running profile, the mode, and the active port. For a first test, use Rule mode rather than Global mode. Rule mode makes it possible to see whether YouTube is sent to the intended proxy group while unrelated services remain direct. Global mode can be useful as a diagnostic control: if YouTube works globally but fails in Rule mode, the problem is probably a rule, DNS decision, or policy-group selection rather than raw node speed.

Next, open the connection or request panel and start a fresh video page. You should see recent requests associated with YouTube or Google video delivery domains. The exact hostnames vary by region and playback type, so do not rely on a copied list from an old forum post. Confirm that the requests are marked with the expected policy and that the policy resolves to the node group you selected. If no requests appear, the browser may bypass Clash, the request panel may be filtered, or the video is being served from an existing browser cache.

Test in a private window after clearing the current video tab. This reduces interference from cached redirects, service workers, browser extensions, and previously established HTTP/3 connections. If you use Chrome or Edge, temporarily disable extensions that provide their own VPN, proxy, privacy filtering, or DNS features. Two proxy layers can produce inconsistent results: one request goes through Clash, another goes through an extension tunnel, and a third uses the browser’s secure DNS resolver.

A useful baseline is to compare three states:

Do not interpret “Global mode is faster” as proof that Global mode is the correct permanent solution. It may simply force every asset and connection through one route while avoiding a mistaken direct rule. Once the failing policy is identified, return to Rule mode and fix the narrow cause.

3. Test node quality beyond a speed-test number

A proxy node can show excellent download speed in a generic test and still perform badly for YouTube. Video playback depends on more than peak bandwidth. It needs stable latency, predictable packet delivery, successful TLS handshakes, and enough capacity during the hours when many users watch video. A node that reaches a speed-test server quickly may take a poor path to Google’s edge or become congested when a popular event begins.

Switch to another node in the same policy group, then replay the same timestamp of the same video. Avoid changing the video, browser, and quality setting at the same time, because that makes the comparison difficult. Give each node at least one or two minutes. A fast initial start followed by repeated buffering usually indicates unstable throughput or packet loss. A long delay before playback begins points more toward DNS, connection establishment, or a blocked endpoint.

Prefer nodes with consistent latency and a sensible geographic path. The nearest country is not automatically the fastest choice. A nearby relay may be overloaded, while a slightly more distant node has a cleaner route to the relevant Google edge. For live streams, stability is often more important than the highest reported throughput because the player cannot build a large buffer far ahead of the broadcast.

Keep the node group from silently switching during your test. Automatic URL testing and health checks are useful, but frequent switching can interrupt long-lived video connections. If the group changes nodes whenever latency crosses a threshold, a video may stall even though every individual node is technically reachable. Temporarily select a fixed node, test it, and then re-enable automatic selection after you understand the result.

A practical comparison looks like this:

The player’s statistics panel can help separate network problems from device performance. If dropped frames rise while the buffer remains healthy, the device, browser hardware acceleration, or video decoder may be responsible. If the buffer repeatedly falls to zero while dropped frames remain low, focus on routing, node capacity, DNS, or transport stability.

4. Inspect YouTube routing rules and policy order

In Rule mode, a broad rule may send YouTube traffic to DIRECT before a more specific proxy rule is reached. Mihomo evaluates rules from top to bottom, so order matters. A later rule cannot repair a decision that has already matched an earlier domain, domain-suffix, IP, or geolocation rule. This is one of the most common reasons a user changes nodes without seeing any difference: the video traffic never reaches those nodes.

Open the active configuration rather than editing an unused profile. Confirm which ruleset is currently loaded and search the connection log for the actual destination hostnames. You may find that the page hostname is proxied while a video delivery hostname is direct, or that an overbroad Google rule sends account traffic and video traffic into a policy group with different behavior.

A minimal policy structure might look like this:

rules:
  - DOMAIN-SUFFIX,youtube.com,YouTube
  - DOMAIN-SUFFIX,youtu.be,YouTube
  - DOMAIN-SUFFIX,googlevideo.com,YouTube
  - DOMAIN-SUFFIX,ytimg.com,YouTube
  - MATCH,DIRECT

This is only an example, not a universal hostname list. Provider infrastructure changes, and some traffic may use additional Google domains. The important principles are to place explicit rules before catch-all rules, use a dedicated policy group for testing, and verify actual matches in the client log. Do not add every Google-owned domain to a proxy group merely because one video failed; that can route account, work, or local services through an unsuitable relay.

Check for conflicting rule providers as well. A downloaded ruleset may include a YouTube entry above your custom rules, while another provider may classify the same destination as streaming, media, or global CDN traffic. If the client offers a rule-hit explanation, use it. Otherwise, temporarily create a narrow test policy and inspect the request panel to see the selected rule and final node.

Also review the policy group’s fallback behavior. Some groups contain a direct option that is selected automatically when health checks fail. If the direct route cannot reach the video delivery service reliably, playback will buffer even though the group name suggests that YouTube is being handled. Choose a known working proxy manually, then test again before adjusting health-check intervals.

5. Check DNS, fake-IP, IPv6, and HTTP/3 behavior

DNS problems are easy to mistake for node problems. Clash may resolve a hostname locally, through the configured nameserver, or through a fake-IP mechanism. The resulting address and the route used for the connection can differ from what the browser would receive without Clash. If the answer is stale, geographically unsuitable, unreachable over IPv6, or inconsistent with the client’s fake-IP mapping, YouTube may load a page but fail when it requests video segments.

Start with a controlled comparison. Flush the operating system DNS cache, close the affected browser tab, and restart the Clash profile. Then test with the client’s normal DNS settings and record whether the selected policy changes. Avoid switching several DNS providers at once. If you use fake-IP, temporarily compare it with redir-host or the client’s equivalent mode, provided your profile supports that change safely. A difference between these modes is a strong signal that address synthesis or DNS mapping deserves closer inspection.

IPv6 is another useful control. A device may prefer IPv6 for one connection while the node or upstream network handles IPv4 more reliably. If the video stalls only on certain networks or only when TUN mode is enabled, temporarily disable IPv6 at the client or operating-system level for testing. This is not necessarily the final fix; it helps determine whether the failure is caused by an incomplete IPv6 route, incorrect DNS answers, or a TUN stack that captures one address family differently from the other.

Modern browsers may also prefer HTTP/3 over QUIC, which uses UDP rather than the TCP path many proxy configurations were originally designed around. If ordinary HTTPS requests work but video playback is unstable, test with browser QUIC disabled or use a client setting that handles UDP consistently. Compare the result with the same node and video. If disabling QUIC improves playback, inspect UDP support, TUN settings, firewall rules, and the node’s transport capabilities instead of immediately adding more domain rules.

Do not leave experimental DNS or transport settings undocumented. Record the original values, the test result, and the exact client version. A setting that helps on a home network may hurt on a mobile hotspot, and fake-IP behavior can interact differently with Clash Verge Rev, Mihomo Party, Clash for Android, and other clients.

6. Move to advanced TUN troubleshooting only when needed

TUN mode is valuable when an application ignores the system proxy or when you need to capture traffic from multiple processes. It also adds another layer: virtual interfaces, route priorities, DNS hijacking, firewall permissions, and possible conflicts with another VPN. If YouTube works through the browser’s HTTP proxy but fails only under TUN, focus on capture and routing rather than changing the subscription.

Confirm that only one TUN-capable VPN or network filter is active. Corporate security software, virtualization platforms, antivirus web shields, and another proxy client can install competing routes. On Windows, inspect network adapters and route priorities. On macOS, check active network extensions and use tools such as nettop to identify the process generating traffic. On Android, remember that only one VPN service normally owns the system VPN slot, so another privacy or firewall application may silently replace Clash’s capture.

Check whether the browser is excluded from TUN rules, whether process-name matching is supported by your client, and whether the configuration uses a compatible DNS hijack mode. A TUN interface that captures the browser but sends DNS outside the expected path can create split results: the page resolves one way, while the video host resolves another. Review the connection panel during a fresh playback attempt and confirm that both DNS and HTTPS activity correspond to the same intended policy.

If the problem appears only after sleep, network changes, or switching from Wi-Fi to cellular, restart the TUN service before rebuilding the profile. Stale routes and old virtual-interface state can survive a normal client window refresh. If repeated restarts are required, collect logs and report the exact client, core version, operating system, mode, DNS mode, and node type. “YouTube is slow” is difficult to diagnose; “Clash Verge Rev, Mihomo core, Windows 11, TUN fake-IP, node B, stalls after Wi-Fi resume” is actionable.

7. Frequently asked questions

Why does YouTube work in Global mode but buffer in Rule mode?

Global mode sends requests through one selected policy and bypasses many rule-order mistakes. In Rule mode, a direct, geolocation, or ruleset entry may match the page or video delivery hostname before your intended YouTube policy. Check the rule hit and move only the necessary specific rules above the catch-all entries.

Should I change the node or change the DNS first?

Test a second stable node first because it is the simplest control. If several good nodes show the same failure while DNS mode changes the result, investigate DNS, fake-IP, IPv6, or QUIC behavior. Changing both at once makes the cause unclear.

Do I need TUN mode to fix YouTube buffering?

No. A browser that correctly uses Clash’s system proxy can work without TUN. TUN is mainly useful for applications that ignore proxy settings or for full-device capture. Enable it only after confirming that the basic proxy path works, and check for conflicts with other VPN or firewall software.

Why does a video buffer at 1080p but play at 480p?

Higher quality requires more sustained throughput and may use different segment sizes or delivery connections. This can expose congestion, packet loss, or an unsuitable route that is invisible at low quality. Compare the player statistics and test a fixed node before assuming that the browser or account is at fault.

Some standalone VPN apps make this diagnosis difficult because they expose only an on/off switch, hide the matched hostname, and automatically change servers while you are testing. Clash requires more attention, but its rule logs, policy groups, DNS controls, and TUN options let you separate a bad node from a bad route or a local capture conflict. If you want that level of visibility while keeping the troubleshooting process repeatable, a Clash client gives you a practical path from basic playback checks to advanced routing control.

Download Clash clients →

Ready to get started?

Test YouTube routes, compare nodes, and inspect DNS behavior with a Mihomo-compatible Clash client.