Skip to content

Updated

sing-box detour Chain:
Send AI Sites Out Through a Static IP

  1. In sing-box, add your static IP as a socks (or http) outbound and set its detour field to the tag of the node you already use; the connection then goes from you through that node to the static IP and on to the site.
  2. Then add a route rule for the AI domains whose outbound is the static IP.
  3. In a Mihomo or Clash Meta client the same idea is the dialer-proxy field on the static IP node. The website sees the static IP; the first node sees only a connection to the static IP address.

Check it right after buyingExample output

curl -x http://USER:PASS@HOST:PORT https://ipinfo.io/json

ip
203.0.113.24
country
US
Matches the country you picked
Day 15
203.0.113.24
Same address for the whole term
Example addresses (203.0.113.0/24), not real exits
01 / 10The same chain in sing-box and in Mihomo

A hand-written chain for sing-box and Mihomo: your own node first, a static IP last, and a rule that sends only AI domains through it.

The same chain in sing-box and in Mihomo

The same chain in sing-box and in Mihomo
Itemsing-boxMihomo / Clash Meta
Chaining fielddetour on the static IP outbounddialer-proxy on the static IP node
What it points toThe tag of your existing outboundA select group that holds your existing node
How AI domains are matchedroute.rules with domain_suffix and action routerules with DOMAIN-SUFFIX lines
What the website seesThe static IPThe static IP

Our summary of the sing-box and mihomo documentation read on 20 November 2026.

How the chain works

In sing-box the detour field of an outbound is the tag of the outbound it dials through, so the static IP outbound dials through your node instead of straight out. In Mihomo, dialer-proxy does the same for a node, and the old relay group type has been deprecated. In both cases the website sees only the last address, the static IP.

This guide assumes you already have a working node. It does not get you online and it does not cover how to obtain one; it only changes which address the site sees for the domains you list.

sing-box: static IP behind your node

{
  "inbounds": [
    { "type": "mixed", "tag": "in", "listen": "127.0.0.1", "listen_port": 2080 }
  ],
  "outbounds": [
    {
      "type": "socks",
      "tag": "static-ip",
      "server": "HOST",
      "server_port": 3333,
      "version": "5",
      "username": "USERNAME",
      "password": "PASSWORD",
      "detour": "YOUR-NODE"
    }
    // keep your existing outbound with the tag "YOUR-NODE" here, unchanged
  ],
  "route": {
    "rules": [
      {
        "domain_suffix": ["claude.ai", "anthropic.com", "chatgpt.com", "openai.com", "ipinfo.io"],
        "action": "route",
        "outbound": "static-ip"
      }
    ],
    "final": "YOUR-NODE"
  }
}

Replace HOST, USERNAME and PASSWORD with the values in My assets (SOCKS5 is port 3333; for an HTTP IP use "type": "http" and port 2222). Replace YOUR-NODE with the tag of the outbound that already works for you, and merge these entries into your own file: the comment is for reading and must be removed. Keep your own dns settings.

Mihomo / Clash Meta: the same chain

proxies:
  - name: "STATIC-IP"
    type: socks5
    server: HOST
    port: 3333
    username: "USERNAME"
    password: "PASSWORD"
    dialer-proxy: "FIRST-HOP"

proxy-groups:
  - name: "FIRST-HOP"
    type: select
    proxies:
      - "YOUR-NODE"
  - name: "AI"
    type: select
    proxies:
      - STATIC-IP

rules:
  - DOMAIN-SUFFIX,claude.ai,AI
  - DOMAIN-SUFFIX,anthropic.com,AI
  - DOMAIN-SUFFIX,chatgpt.com,AI
  - DOMAIN-SUFFIX,openai.com,AI
  - DOMAIN-SUFFIX,ipinfo.io,AI
  - MATCH,YOUR-EXISTING-GROUP

Replace HOST, USERNAME and PASSWORD with the values in My assets, YOUR-NODE with the name of your working node and YOUR-EXISTING-GROUP with the group your last rule already uses. For an HTTP IP change type to http and port to 2222. Merge into your own profile.

Step by step

  1. Step 1

    Get a static ISP IP in the country that fits your account and copy HOST, port, USERNAME and PASSWORD from My assets.

  2. Step 2

    Add the outbound (sing-box) or node (Mihomo) from the config above, with detour or dialer-proxy pointing at your working node, and the rule for the domains you want on the static IP.

  3. Step 3

    Check and reload the configuration. In sing-box run sing-box check -c config.json first.

  4. Step 4

    Run curl -x socks5h://127.0.0.1:2080 https://ipinfo.io/json (2080 is the example listen port in the sing-box config above; use your own).

    Expected result The address and country of the static IP, not your node's.

  5. Step 5

    Then use that address for one account only, and set the system time zone and language to agree with its country.

What this does not do

The chain adds a hop, so some added delay is expected. The first node can see that you connect to the static IP address, and the proxy login passes through it, so chain only through a node you trust. Traffic to HTTPS sites stays encrypted. A static IP changes the address, not the rules of a service: choose a country the service supports.

Only the domains in your rule go through the chain. Apps that use other domains, or that ignore the proxy settings, will leave through your node; add their domains to the rule after you see them in your client's log.

If the chain does not work

No connection at all

Check Whether your node alone reaches the internet, and whether HOST, port and login match My assets and the protocol you bought.

Fix Fix the first hop first, then the static IP entry. If the host name does not resolve, try the numeric address.

ipinfo.io shows your node's address

Check That ipinfo.io matches a rule that points to the static IP, and that the rule sits before the final or MATCH line.

Fix Move the rule up, select the static IP in the group (Mihomo) and reload.

Authentication failed or 407

Check USERNAME and PASSWORD against My assets; a quote or backslash inside a JSON or YAML value.

Fix Correct the values and reload.

sing-box refuses to start

Check Run sing-box check and read the first error; the comment in the sample must be removed, and rule fields differ between versions before and after 1.11.

Fix Use the 1.11 or newer rule form shown above, or update sing-box.

Prices and limits

A static ISP IP costs US$0.50 for 1 day and US$7.99 for 30 days, the same in every country, and an order takes 1 to 100 IPs. HTTP uses port 2222 and SOCKS5 port 3333, and the IP does not rotate during the lease. There is no free trial. A proxy changes only the network address: the country rules of Claude, ChatGPT and Gemini still apply.

sing-box chain: FAQ

How do I chain two proxies in sing-box?

Give the second outbound a detour field with the tag of the first. The second one then dials through the first.

What is the Mihomo equivalent of detour?

The dialer-proxy field on the node, pointing to a select group. The relay group type is deprecated.

What does the website see?

Only the last address, here the static IP. Your node sees a connection to the static IP address.

Do I need to send all traffic through the static IP?

No. Route only the domains you list and leave the rest on your node or direct.

How much is a static IP for the chain?

US$0.50 for 1 day and US$7.99 for 30 days, the same in every country.

Further reading

Setup guides Proxy302 publishes on GitHub on the same topic:

Reference links

6
  1. sing-box documentation: Dial Fields

    Official documentation · Confirmed on:

    Read on 20 November 2026: the detour field is the tag of the outbound it dials through, and if it is set all other dial fields are ignored; the page shows no deprecation note for detour.

  2. sing-box documentation: SOCKS outbound

    Official documentation · Confirmed on:

    Read on 20 November 2026: type socks with server and server_port (required), version 4, 4a or 5 (5 by default), username and password.

  3. sing-box documentation: route rule

    Official documentation · Confirmed on:

    Read on 20 November 2026: domain_suffix matches a domain suffix; action is required; the rule-level outbound field was moved to the route action in 1.11.0, so a rule is written with "action": "route" and "outbound".

  4. mihomo documentation: dialer-proxy

    Official documentation · Confirmed on:

    Read on 20 November 2026: dialer-proxy makes the current proxies entry open its connections through the named proxy group or outbound, so the target site sees only the entry's IP; the relay group type is deprecated and groups do not support dialer-proxy directly.

  5. mihomo documentation: SOCKS node

    Official documentation · Confirmed on:

    Read on 20 November 2026: type socks5 with server, port, and optional username and password.

  6. Proxy302 product facts and price list

    Product observation · Confirmed on:

    Product facts file of the site, checked 20 November 2026 against the console and the price table: per-IP lease prices in US$ (1 PTC = US$1) for 1 to 90 days, HTTP port 2222 and SOCKS5 port 3333, quantity limit, no free trial, optional auto-renew.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.