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

HomeRecipesProxy chains

Proxy chains

A proxy chain connects to node A first, then from A to node B, so the world sees B's exit. mihomo's dialer-proxy syntax, when it is useful, what it costs in speed, and FlClash's warning on circular references.

Ingredients

  • A "front" node (usually your provider's node, which gets you out)
  • A "landing" node (such as your own server or a fixed residential IP)

When you need it

  • The landing node connects poorly from where you are and needs relaying through a provider node.
  • A service wants a fixed exit IP, while provider node IPs change often.
Links of a chain: traffic goes through the first ring, then the second
Links of a chain: traffic goes through the first ring, then the second W.carter, CC0

Steps

Add a dialer-proxy line to the landing node, pointing at a node or a group:

Landing node via a front group
proxies:
  - name: Landing-Home
    type: socks5
    server: 203.0.113.10
    port: 1080
    dialer-proxy: Front
proxy-groups:
  - name: Front
    type: url-test
    use: [sub-a]
    url: https://www.gstatic.com/generate_204
    interval: 300

Connecting to "Landing-Home" now goes first through the lowest-delay node in the "Front" group, then on to 203.0.113.10. The address is reserved for documentation; use your own.

The cost

ItemSingle nodeProxy chain
DelayOne legBoth legs added
Speed ceilingDepends on the nodeDepends on the slower leg
Exit IPThe provider node's IPThe landing node's fixed IP

Circular references

If A goes through B and B through A, you have a loop. FlClash detects this and reports an error, and the configuration does not take effect. Check whether the group named in dialer-proxy contains the landing node itself.

Can the landing node carry UDP?

Only if both legs support UDP. If the front node does not, UDP cannot pass.

How is this different from "double-hop" providers?

It is the same idea; a chain just lets you choose which node handles which leg.

Read onExternal controller

Read alongside

This page covers: FlClash proxy chain, dialer-proxy, Clash chained proxy