Hysteria2 on a Bangkok VPS: 36 Mbps measured, and why YouTube showed only a sidebar

I put Hysteria2 on a €4-class instance in Bangkok and measured everything I could reach. Most of it worked on the first try. The interesting part was YouTube, which loaded its sidebar and nothing else — and the cause had nothing to do with the proxy.

The instance

Item Value
Provider Alibaba Cloud, lightweight instance
Region Bangkok, Thailand
OS Debian 12.10
Spec 2 vCPU / 1 GiB RAM / 30 GiB ESSD
Port speed 200 Mbps shared peak
Traffic unmetered (no per-GB charge)
Trial 1 month, then ~$4/month

1 GiB of RAM is the real constraint. Hysteria2 plus the base system sits around 200 MB, so there is room for one more small service and nothing else. No control panels.

The firewall gotcha that looks like a block

Hysteria2 runs over UDP. Most cloud firewalls ship with only TCP 22 open, and the symptom of a missing UDP rule is a client that hangs at handshake — which looks exactly like the server being blocked.

Add before you start:

Protocol Port Source
TCP 22 your IP
UDP 443 0.0.0.0/0

Server setup

On a clean Debian image:

apt update && apt install -y curl openssl ufw
# self-signed cert for the SNI we will fake later
openssl req -x509 -newkey rsa:2048 -nodes -days 3650 \
  -keyout /etc/hysteria/server.key -out /etc/hysteria/server.crt \
  -subj "/CN=www.bing.com"
# BBR helps on long fat paths
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
ufw allow 22/tcp && ufw allow 443/udp && ufw --force enable

Server config (/etc/hysteria/config.yaml):

listen: :443
tls:
  cert: /etc/hysteria/server.crt
  key: /etc/hysteria/server.key
auth:
  type: password
  password: <long-random-password>
masquerade:
  type: proxy
  proxy:
    url: https://www.bing.com
    rewriteHost: true

Client config (mihomo / Clash Verge)

proxies:
  - name: "TH"
    type: hysteria2
    server: <server-ip>
    port: 443
    password: <same-password>
    sni: www.bing.com
    skip-cert-verify: true
    up: "30 Mbps"
    down: "100 Mbps"

rules:
  - GEOIP,CN,DIRECT
  - DOMAIN-SUFFIX,cn,DIRECT
  - MATCH,PROXY

The GEOIP,CN,DIRECT rule matters: without it every domestic request takes a round trip to Bangkok.

Measured results

Client line: China Telecom, Shanghai. Measured 2026-11-23, outside peak hours.

Metric Result
ICMP ping 98 ms median, with ~1 in 3 packets lost
10 MB download through proxy 4.51 MB/s ≈ 36 Mbps (2.2 s)
First TLS handshake to a new site 3.4–4.3 s
Domestic site through DIRECT 0.36 s, HTTP 200
google.com/generate_204 204

The 1-in-3 ICMP loss is worth noting: ICMP is often rate-limited separately from the data path, so loss on ping does not necessarily show up in throughput. Judge by TCP/UDP goodput, not by ping.

The YouTube problem

youtube.com returned HTTP 200 with a 1,028,414-byte page — a complete document — but the body rendered as an empty shell with only the left navigation. Fetching it with a browser user agent and grepping the response explained it:

curl -s -x http://127.0.0.1:7897 https://www.youtube.com/ -o yt.html
grep -c '"videoId":"' yt.html     # → 0

Zero video IDs in a one-megabyte page means the server decided not to send a feed. A single video page was more explicit:

"playabilityStatus":{"status":"LOGIN_REQUIRED",
  "reason":"sign in to confirm you're not a bot"}

This is IP reputation, not connectivity. The instance’s address is a data-centre range, and Google treats unauthenticated requests from it as automated traffic. Three things confirmed the network was fine:

Check Result
i.ytimg.com (thumbnails) 204
yt3.ggpht.com (avatars) 204
google.com 200

Fix: sign in to a Google account in that browser. The account signal outweighs the IP signal, and the feed returns. Nothing about the server config changed.

If you cannot or will not sign in, a data-centre IP will keep getting the empty shell. That is a reason to prefer residential-adjacent providers or a different region — not a reason to change protocol settings.

Cost and when to leave

At 36 Mbps the instance handles 1080p video comfortably and 4K marginally. The trial converts to about $4/month with unmetered traffic, which is fine for one person and wrong for reselling.

Benchmark it again between 20:00 and 23:00 local time before you commit. Shared 200 Mbps is shared — the number that matters is the one at peak, not the one at noon.

Choosing a provider for this workload

What matters: unmetered or generous traffic, a port that is not shared 20 ways at peak, and a location close enough that 100 ms round trip is realistic. I list the providers I have actually measured, with the numbers, in the comparison post.

How to benchmark a VPS before you pay →