Wood Chen

Xboard + xrayr Vmess: Proxy a Singapore Node Through Hong Kong for a Singapore IP + Hong Kong Speeds

0 comments518 views150 words

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

Okay, "Hong Kong speeds" in the title is a bit of an exaggeration, but latency will be lower than connecting directly to Singapore

Start with a direct Singapore node

Assume the domain is sg.q58.club

Pasted image 20250605165347

Prerequisites for setting up the Hong Kong node

Domain and DNS

Set up a domain, such as hk.q58.club, and point its DNS record to the Hong Kong server

Configure a reverse proxy on the Hong Kong server

Create a new site in nginx on the Hong Kong server and reverse proxy it to the Singapore node with the following configuration:

location ^~ / {
    proxy_pass http://新加坡IP:80; 
    proxy_set_header Host sg.q58.club; //Replace this 
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_set_header REMOTE-HOST $remote_addr; 
    proxy_set_header Upgrade $http_upgrade; 
    proxy_set_header Connection $http_connection; 
    proxy_set_header X-Forwarded-Proto $scheme; 
    proxy_http_version 1.1; 
    add_header X-Cache $upstream_cache_status; 
    add_header Cache-Control no-cache; 
    proxy_ssl_server_name off; 
    proxy_ssl_name $proxy_host; 
    add_header Strict-Transport-Security "max-age=31536000"; 
}

I used port 80 here to avoid a second round of decoding. Make sure the Singapore server is configured to disable automatic redirects on port 80

Then enable SSL and configure the certificate

Configure the node in Xboard

Create a new node

Pasted image 20250605170126

**The WebSocket settings look like this: **

Pasted image 20250605170230

{
  "path": "/*******", //Same as the parent node
  "headers": {
    "Host": "hk.q58.club" //Hong Kong domain
  }
}

Then just connect.

Results

Pasted image 20250605170743

Last updated 2025-06-24

Related posts

Comments 0