(In a rush to write this on my phone, my writing skills are terrible… I’ll polish it later…)
One night, I decided to play around with the small chicken provided by ICMP9.
ICMP9 offers a unique global landing node service, which can be installed through scripts they provide. It’s always a good habit to check scripts before running them. I found some interesting aspects.
The basic principle of this global landing service is as follows:
User端(Xray) --VMess(WSS)–>
Cloudflare →
ICMP9 entry server →
Landing server
My writing skills are poor… Let me give an example to make it clearer. This is one of their landing nodes:
- name: 🇺🇸 United States
type: vmess
server: tunnel-na.8443.buzz # ← North American entry address, can also be changed to other entries
port: 443
uuid: <Your account API Key>
alterId: 0
cipher: auto
tls: true # Must enable TLS
servername: tunnel-na.8443.buzz
network: ws
ws-opts:
path: /us # ← Use country codes to distinguish landing nodes, see all landing nodes here: https://api.icmp9.com/online.php
headers:
Host: tunnel-na.8443.buzz
In essence, they are a VMess airport that doesn’t directly serve China. So we just need to use our own or another airport’s node as a proxy, then set ICMP9’s node as the landing node to create a chain proxy, and enjoy global landing ![]()
We can even reverse-proxy it using Nginx:
location / {
\tproxy_pass https://tunnel-na.8443.buzz;
\tproxy_set_header Host tunnel-na.8443.buzz;
\tproxy_ssl_server_name on;
\tproxy_cache off;
\tproxy_http_version 1.1;
\tproxy_set_header Upgrade $http_upgrade;
\tproxy_set_header Connection "upgrade";
}
Then, modify your Clash configuration file’s server, servername, and Host settings to use it as a proxy.
I wrote a custom subscription in PHP that generates Clash configurations based on your information (thanks to GV.UY for providing the subdomain and virtual host).
https://foo.gv.uy/icmp9-clash.php?server=<Your Nginx server address>&port=<Nginx port>&uuid=<Your API Key>&servername=<Your domain name>
Subscription URL PHP code (if you don't trust the provided subscription URL, you can self-host one)
<?php
header('Content-Type: text/yaml; charset=utf-8');
$server = $_GET['server'] ?? 'localhost';
$port = intval($_GET['port'] ?? 443);
$uuid = $_GET['uuid'] ?? '';
$servername = $_GET['servername'] ?? $server;
$tls = ($_GET['tls'] ?? 'true') === 'true';
// Get API data
$apiUrl = "https://api.icmp9.com/online.php";
$apiContent = @file_get_contents($apiUrl);
$apiData = json_decode($apiContent, true);
$proxies = [];
$proxyNames = ["DIRECT"];
if ($apiData && $apiData['success']) {
foreach ($apiData['countries'] as $country) {
$name = $country['emoji'] . " " . $country['name'];
$path = "/" . $country['code'];
$proxies[] = [
"name" => $name,
"type" => "vmess",
"server" => $server,
"port" => $port,
"uuid" => $uuid,
"alterId" => 0,
"cipher" => "auto",
"tls" => $tls,
"servername" => $servername,
"network" => "ws",
"ws-opts" => [ "path" => $path ]
];
$proxyNames[] = $name;
}
}
echo "# Clash Subscription Generated by Cat-Girl\n";
echo "mixed-port: 7890\nallow-lan: true\nmode: rule\nlog-level: info\n\n";
// Output Proxies
echo "proxies:\n";
foreach ($proxies as $p) {
echo " - name: '{$p['name']}'\n";
echo " type: {$p['type']}\n";
echo " server: '{$p['server']}'\n";
echo " port: {$p['port']}\n";
echo " uuid: {$p['uuid']}\n";
echo " alterId: 0\n";
echo " cipher: auto\n";
echo " tls: " . ($p['tls'] ? "true" : "false") . "\n";
echo " servername: '{$p['servername']}'\n";
echo " network: ws\n";
echo " ws-opts:\n";
echo " path: '{$p['ws-opts']['path']}'\n";
echo " headers:\n";
echo " Host: '{$p['servername']}'\n";
}
// Output Proxy-Groups
echo "\nproxy-groups:\n";
echo " - name: '🚀 节点选择'\n";
echo " type: select\n";
echo " proxies:\n";
foreach ($proxyNames as $pn) {
echo " - '$pn'\n";
}
// Output Rules
echo "\nrules:\n";
echo " - MATCH, 🚀 节点选择\n";