flclash.st
English
简体中文繁體中文EnglishРусскийفارسی

HomeDigestRules

Rule presets one by one

Recent FlClash versions offer rule presets you can add with one tap: block QUIC, block STUN, block DoT, block loopback, Apple and Microsoft direct, BT direct and LAN direct. What each does, when to use it, and the side effects.

An old handwritten recipe book: a preset is the few steps someone already wrote down for you to follow
An old handwritten recipe book: a preset is the few steps someone already wrote down for you to follow Reinhold Möller Ermell, CC BY-SA 4.0

Writing rules takes a little syntax, so recent FlClash versions come with a handful of ready-made rule presets that work once ticked (exactly where they sit may shift between versions). They look alike but do quite different jobs: some improve speed, some protect privacy, some just keep system services from taking the long way round.

Rule presets and your own rules do not conflict. Think of the presets as a base layer: they solve problems almost everyone meets, such as the LAN, system updates and BT downloads. Routing that depends on your own habits you then write yourself or take from your provider. The upside of presets is that FlClash maintains them, so you need not worry about the syntax.

Seven presets

PresetWhat it doesFor
Block QUICBlocks UDP 443 so browsers fall back to TCPNodes with shaky UDP; pages fast one moment, slow the next
Block STUNBlocks the requests WebRTC uses to discover your public IPWorry that pages learn your real IP through WebRTC
Block DoTBlocks encrypted DNS on port 853The system or apps resolving names behind FlClash's back
Block loopbackStops traffic looping back to the local proxy portAvoiding endless loops from misconfiguration
Apple / Microsoft directSystem updates, stores and similar go directSaving traffic; keeping updates off the nodes
BT directBitTorrent traffic avoids the nodesMany providers ban BT and may close accounts for it
LAN directPrivate ranges go directReaching the router, NAS and printer
A tray of ready-made canapés: a preset is the plate that arrives ready to eat
A tray of ready-made canapés: a preset is the plate that arrives ready to eat Missvain, CC BY 4.0

Why blocking QUIC can speed things up

QUIC is the transport HTTP/3 uses, and it runs on UDP. If a node handles UDP poorly, the browser tries QUIC first, fails and falls back to TCP, giving the "slow on first load" effect. Blocking QUIC makes the browser use TCP from the start, which ends up faster. The cost is losing QUIC's edge on good networks.

Blocking STUN and WebRTC

Video meetings and in-page calls use WebRTC, which discovers your public address through STUN servers. Some pages use this to learn the real IP outside the proxy. Blocking STUN closes that path, but in-page calls may fail to connect or lose quality, so keep it in mind during meetings.

A railway points lever: each preset throws the points once, sending one kind of traffic another way
A railway points lever: each preset throws the points once, sending one kind of traffic another way W.carter, Public domain

Blocking DoT and Private DNS

DoT is encrypted DNS on port 853, and Android's "Private DNS" is DoT. It lets name lookups bypass FlClash, so rules written by domain may stop working. Once it is blocked, the system falls back to ordinary DNS and hands it to FlClash. See the Private DNS article.

Presets versus your own rules

Rules match from top to bottom, and the first hit wins. Presets usually sit before your own rules. If you wrote a rule sending a domain through the proxy while a preset sends it direct, it depends which comes first; the Requests page shows which rule a connection hit.

Why BT direct matters

Many providers explicitly ban BT and PT downloads in their terms, because the traffic is heavy and draws copyright complaints. If BT traffic goes through a node, the result is throttling at best and a closed account at worst. The BT direct preset recognises BitTorrent traffic and sends it straight out of your local network.

Note that recognition relies on traffic patterns and common ports, so encrypted BT connections are not caught every time. It is best to also set your download client not to use the proxy.

Apple and Microsoft direct

System updates, app stores and iCloud and OneDrive sync all move a lot of data. These services have CDNs in China, so direct is usually faster than a node and saves provider traffic. The preset lets these services' domains straight through.

If you happen to need a Microsoft or Apple service through the proxy (a region-limited feature, for example), add a rule of your own before the presets.

Block loopback

Loopback means traffic leaving FlClash and coming back round into FlClash itself. It usually comes from misconfiguration, such as a node address written as this machine, or a program pointing the system proxy back at FlClash's port. Once a loop forms, CPU use soars and every connection hangs. This preset is the safety net.

Checking it took effect

After turning a preset on or off, filter the relevant connections on the Requests page, for example search for UDP connections on :443, and see whether they show as blocked. That confirms the preset really works. When a preset causes trouble, turning them off one at a time and watching finds the culprit more easily than turning them all off at once.

Can I tick every preset?

Not recommended. Blocking STUN affects in-page calls, and blocking QUIC makes some sites slightly slower on good networks. Tick what you need.

Do subscription updates overwrite presets?

Presets are FlClash's own settings, not part of the subscription, so updates leave them alone.

My provider's rules are in use; do I still need presets?

Provider rules mostly include LAN direct already; the others usually are not there, so add them.

Video got choppier after blocking QUIC?

Some video sites do better over QUIC. Turn this preset on only when your nodes handle UDP badly.

Read on

Read alongside

This page covers: FlClash rule presets, block QUIC, BT direct