User Guide / Advanced

The IPv6 switch: when to turn it on and what else to change

Advanced · Updated 2025-09-25 · ~2 min read

The General page has an IPv6 switch, off by default. While it is off the core refuses IPv6 connection requests and programs normally fall back to IPv4, which most people never notice.

When you need it on

SponsoredWhere does the subscription link come from?Our partner provider gives you 1 GB of high-speed Hong Kong data at signup — import it in one click.Get high-speed nodes

The switch alone is not enough

DNS also has to be allowed to return AAAA records, otherwise resolution breaks before anything connects:

dns:
  enable: true
  ipv6: true

Rules need attention too: IP-CIDR only matches IPv4, so IPv6 ranges must be written as IP-CIDR6. Most rule sets copied from elsewhere contain no IPv6 entries at all, so once you enable it that traffic falls straight through to MATCH. GEOIP still works for IPv6. Under TUN mode, confirm the virtual adapter actually received an IPv6 address — run ipconfig and look at the Clash adapter block.

When enabling it makes things slower

This is common where the ISP's IPv6 quality is poor: the browser tries IPv6 first, waits several seconds for a timeout and only then falls back to IPv4, so every new site hangs briefly before loading. Test by turning the switch off and revisiting the same site — if it is instantly faster, that was the cause. Either leave it off, or set ipv6: false under DNS only and keep system-level IPv6 available.