线路连接实验室
客户端下载住宅IP与VPS14 篇使用指南English阅读测评逐层排查连接问题

Chained Proxy & Tunneling · Technical Guide

How to Configure Chained Proxies (dialer-proxy / detour) in Clash Verge Rev, Mihomo & Sing-box with Static Residential SOCKS5

Direct connections to overseas residential SOCKS5 proxies from restricted or high-latency networks suffer from severe packet loss and TLS reset. This guide shows how to set up two-hop chained proxies (Forward Proxy / Detour) in Clash Verge Rev (Mihomo) and sing-box: use high-speed low-latency transit as the first hop (Underlay) and clean residential SOCKS5 (BestProxy / ResIP / IPRoyal) or dual-ISP VPS (LisaHost) as the second hop (Overlay landing exit).

Last Verified: 2026-11-12
Key Takeaways

Quick Conclusion

Residential SOCKS5 proxies provided by ISP carriers (Comcast, AT&T, Spectrum) lack route acceleration and fail against stateful firewall inspections when connected directly. By chaining a high-performance transit node (first hop) with a residential SOCKS5 landing proxy (second hop via dialer-proxy or detour), all traffic is encrypted across international boundaries while the destination website only perceives the pristine residential ISP exit.

01
Issue Analysis

Common Symptoms & Checkpoints

SymptomLikely LayerFirst Step
Direct SOCKS5 connection times out or suffers 40%+ packet lossL3 Network / Unencrypted SOCKS5 DPI Filtering

Switch to chained proxy mode by forwarding SOCKS5 traffic through an encrypted transit tunnel.

Mihomo displays dialer-proxy node not found errorL2 Parser / Proxy Name Mismatch

Verify that the string in dialer-proxy matches the exact node name in the proxies array, including case and emojis.

Destination website still detects local geographic locationL4 System / WebRTC & Remote DNS Leak

Enable fake-ip in DNS configuration and disable WebRTC STUN candidate gathering in web browser.

02
Implementation Steps

Step-by-Step Configuration

  1. 01
    Obtain Transit Tunnel and Residential SOCKS5 Credentials

    Prepare your primary high-speed transit node (e.g. Just My Socks CN2 GIA or IPLC node) and extract the residential SOCKS5 host, port, username, and password from BestProxy, ResIP, or IPRoyal.

  2. 02
    Configure dialer-proxy in Clash Verge Rev (Mihomo Core)

    Add your residential SOCKS5 node under the proxies array and declare dialer-proxy pointing to your transit node:

    proxies:
      # Transit Node (First Hop)
      - name: "Transit-CN2GIA-01"
        type: ss
        server: transit.example.com
        port: 443
        cipher: aes-128-gcm
        password: "secret_password"
    
      # Residential Landing Exit (Second Hop)
      - name: "Residential-Exit-US"
        type: socks5
        server: us.bestproxy.com
        port: 10800
        username: "user_bestproxy"
        password: "pass_bestproxy"
        dialer-proxy: "Transit-CN2GIA-01" # Chained forward hop
    
    proxy-groups:
      - name: "AI-Clean-Egress"
        type: select
        proxies:
          - "Residential-Exit-US"
          - DIRECT
    
    rules:
      - DOMAIN-SUFFIX,anthropic.com,AI-Clean-Egress
      - DOMAIN-SUFFIX,claude.ai,AI-Clean-Egress
      - DOMAIN-SUFFIX,openai.com,AI-Clean-Egress
      - DOMAIN-SUFFIX,chatgpt.com,AI-Clean-Egress
      - MATCH,Transit-CN2GIA-01
  3. 03
    Configure Detour in Sing-box Outbounds

    In sing-box, specify the detour parameter in your residential socks outbound referencing the transit outbound tag:

    {
      "outbounds": [
        {
          "type": "shadowsocks",
          "tag": "transit-out",
          "server": "transit.example.com",
          "server_port": 443,
          "method": "aes-128-gcm",
          "password": "secret_password"
        },
        {
          "type": "socks",
          "tag": "residential-out",
          "server": "us.resip.net",
          "server_port": 10800,
          "user": "resip_user",
          "password": "resip_password",
          "detour": "transit-out"
        }
      ]
    }
  4. 04
    Audit IP Fraud Score and WebRTC Integrity

    Navigate to ipinfo.io and verify that asn.type reports isp. Run a WebRTC leak test to ensure your private or local WAN IP is not being exposed through ICE candidates.

03
Questions

Frequently Asked Questions

Does chained proxying double my latency?+

No. The total latency is the ping between your client and transit node plus the inter-datacenter ping between transit and residential IP (typically 20ms to 40ms within the same region). This is substantially faster and more stable than direct unoptimized residential connections.

Can I use LisaHost dual-ISP VPS as the chained landing exit?+

Yes. Deploy a lightweight SOCKS5 or Shadowsocks service on LisaHost and set it as the dialer-proxy destination to obtain an exclusive static residential IP.