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

Self-Hosting & VPS Architecture · Technical Guide

Self-Hosting AnyTLS & VLESS Reality on a Dual-ISP Residential VPS: SNI, Port 443 & BBR Optimization

Commercial shared proxies carry multi-tenant abuse risks. Self-hosting VLESS Reality or AnyTLS on a dedicated dual-ISP residential VPS guarantees an exclusive, clean IP with carrier residential credibility. This guide walks through Linux BBR acceleration, SNI theft camouflage (TLS 1.3 HTTP/2 targets), and client JSON configurations.

Last Verified: 2026-11-12
Key Takeaways

Quick Conclusion

Self-hosting on a dual-ISP native residential VPS (LisaHost) gives you an exclusive public IP address with authentic home broadband ASN reputation. When combined with VLESS Reality, you eliminate domain registration and TLS certificate overhead by borrowing the TLS handshake of trusted external services (e.g. gateway.icloud.com). Follow this guide to deploy Xray-core, enable BBR, and configure client connections.

01
Issue Analysis

Common Symptoms & Checkpoints

SymptomLikely LayerFirst Step
Client reports remote error: tls: handshake failureL3 Protocol / Incompatible Reality Camouflage Target (dest/SNI)

Ensure target server supports TLS 1.3 and H2; test dest: gateway.icloud.com:443.

Connection times out immediately after deploymentL4 System / Cloud Security Group Port 443 Blocked

Check ufw allow 443/tcp and verify provider cloud dashboard firewall rules.

Node works initially then fails after 2 hours with authentication errorL4 System / VPS System Time Drift Exceeds 90 Seconds

Install chrony on VPS to synchronize system clock with NTP pools.

02
Implementation Steps

Step-by-Step Configuration

  1. 01
    Provision LisaHost Dual-ISP VPS & Enable Linux BBR

    Launch a Debian 12 or Ubuntu 24.04 instance on LisaHost (US Los Angeles 9929/CN2 GIA or UK London). Enable BBR congestion control via sysctl:

    # Enable BBR Congestion Control
    echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
    echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
    sysctl -p
    
    # Verify BBR is Active
    sysctl net.ipv4.tcp_congestion_control
  2. 02
    Generate Reality Keys and ShortID

    Install official Xray-core on the VPS and generate cryptographic credentials:

    # Generate x25519 Keypair
    xray x25519
    
    # Generate UUID
    xray uuid
    
    # Generate 8-byte Hex ShortID
    openssl rand -hex 8
  3. 03
    Configure Xray VLESS Reality Server

    Write the server configuration to /usr/local/etc/xray/config.json borrowing Apple's trusted TLS 1.3 handshake:

    {
      "inbounds": [
        {
          "port": 443,
          "protocol": "vless",
          "settings": {
            "clients": [
              {
                "id": "YOUR_UUID_HERE",
                "flow": "xtls-rprx-vision"
              }
            ],
            "decryption": "none"
          },
          "streamSettings": {
            "network": "tcp",
            "security": "reality",
            "realitySettings": {
              "show": false,
              "dest": "gateway.icloud.com:443",
              "xver": 0,
              "serverNames": ["gateway.icloud.com"],
              "privateKey": "YOUR_PRIVATE_KEY_HERE",
              "shortIds": ["YOUR_SHORT_ID_HERE"]
            }
          }
        }
      ],
      "outbounds": [{ "protocol": "freedom" }]
    }
  4. 04
    Import Client Profile into Clash Verge Rev or Sing-box

    Assemble the client configuration using the VPS IP, public key, shortId, and SNI. Test connection speed and confirm IP purity on ipinfo.io.

03
Questions

Frequently Asked Questions

How do I choose the best SNI camouflage target for Reality?+

Choose a major legitimate domain (Apple, Microsoft, Cloudflare) that supports TLS 1.3 and HTTP/2, whose CDN edge servers are geographically adjacent to your LisaHost VPS datacenter.

What VPS hardware specifications are required for AnyTLS / Reality?+

Xray-core is highly optimized in Go. A single core CPU with 1GB RAM is sufficient to saturate a 500Mbps to 1Gbps network link. Prioritize route quality (9929 / CN2 GIA) and dual-ISP IP credibility over CPU count.