💡 2025 Update: V2Ray with REALITY protocol remains the most effective method for bypassing the Great Firewall of China. The REALITY protocol eliminates server-side TLS fingerprints and provides superior camouflage compared to traditional VPN protocols, making it significantly harder for the GFW to detect and block.
I tried to install V2Ray on several cloud hosting platforms, including AWS (including Lightsail) and Digital Ocean. However, none of the configurations I experimented with could reliably penetrate China's Great Firewall on AWS servers. Vultr rejected my payment card, so I had to look for alternatives. I chose Digital Ocean. Digital Ocean has been running smoothly for several weeks, with excellent reliability and minimal speed loss.
Using this system has been economical, as each server costs $4-6 a month (DigitalOcean's entry-level droplets start at $4/month as of 2025). Although it has the potential for commercial use, my main goal is to provide this information to travelers to China so they can save $30/month on services like Astrill that often require switching between servers. Both Astrill and V2Ray worked in my experience, but I found the V2Ray setup to be more reliable.
However, there are some drawbacks compared to other VPNs like Astrill, such as the lack of URL-specific bypasses. This may not be a big issue for me while traveling in China, but it may be a problem if you plan to live here for a long time.
If you want to avoid VPNs altogether, the easiest way is to use a SIM card from Hong Kong (if you're flying in from there) or roam with a SIM card from your home country. For example, if you have a SIM card from Malaysia, you can use that SIM card to roam in China while getting 2GB of data per day for only 99RM ($21 US) per month. This may be cheaper than getting a SIM card in China. However, without a local Chinese phone number, you won't be able to use some local services such as ordering takeout and buying tickets via WeChat.
- Vultr - Better connectivity to China, multiple Asian locations
- Linode - Good Asian presence, reliable performance
- Oracle Cloud - Offers free tier (limited resources)
- BandwagonHost - Popular among Chinese users
- AWS Lightsail - Works but less reliable for GFW bypass
- Google Cloud Platform - Free tier available, variable success rate
Note: Server location matters! Choose servers in:
- Japan (lowest latency for most of China)
- Singapore
- South Korea
- US West Coast (as backup)
-
Create a Digital Ocean Account:
- Sign up for a Digital Ocean account using a referral link, like this one: Digital Ocean Referral Link this will give you $200 of credit to be used within 2 months.
- Note: Students can get a $200 credit that is valid for a year via GitHub Education.
-
Add Billing Information:
- Add your billing information by linking a credit card to your Digital Ocean account. While other cloud providers can be used, AWS is not recommended due to potential issues.
-
Create a Droplet:
- In the top right-hand corner, click "Create" and then select "Droplets."
-
Configure Server Location:
- Choose a server location that's closest to where you'll be in China. For example, if you're in the eastern area of China, select San Francisco. You can create multiple servers in different locations if needed.
-
Select OS and Version:
- Choose "Ubuntu" as the OS image and select "Ubuntu 22.04 LTS (x64)" as the version.
-
Choose Virtual Machine Size:
- Opt for "Shared CPU: Basic."
-
CPU Options:
- Select "Premium AMD." If you plan to use it with just a few devices (up to 8), choose the entry-level plan starting at $4/month (512MB RAM) or $6/month (1GB RAM).
-
Authentication Method:
- Select "Password" for now, or you can set up SSH authentication separately.
-
Set Hostname:
- Change the hostname to something of your choice, for organizational purposes.
-
Create the Droplet:
- Click "Create" and wait for your server to be provisioned.
-
Note the IP Address:
- After the server is created, note down the IP address as you'll need it later.
-
Access the Server Console:
-
Update Server Packages:
- Run the command
export DEBIAN_FRONTEND=noninteractive && apt update -y && apt upgrade -yto update the server with the latest packages.
- Run the command
-
Install X-Ray Panel (3x-ui Recommended):
- For better security and active maintenance, use 3x-ui:
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) - Alternative (original x-ui):
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install_en.sh)
- For better security and active maintenance, use 3x-ui:
-
X-Ray Configuration:
- Follow the prompts for X-Ray installation:
- Type "y" to continue.
- Set up your username and password for the x-ui admin panel.
- Set the port to "54321."
- Follow the prompts for X-Ray installation:
-
Enable BBR:
- Type "x-ui" and press Enter.
- Type "15" and press Enter to enable BBR.
-
Access Admin Panel in a Web Browser:
-
Log in to X-UI Admin Panel:
-
Admin Panel Settings:
-
Preferred Language Setup:
-
Add Inbound Rules (REALITY Protocol - Recommended for 2025):
- Refresh the admin panel and go to "Inbound" -> "Add inbound."
- Use the settings for "VLESS + XTLS + uTLS + REALITY" (most effective for bypassing GFW in 2025)
- Set the remark to your hostname (Step 8) and port to "443."
- Toggle to enable "reality."
- Choose a camouflage website (e.g., www.amazon.com, dl.google.com) that supports TLSv1.3
Note: Don’t worry if your information below the “reality” row is different to the screenshot as those are automatically populated.
-
Add a User:
-
Create the Inbound:
- Click "Add" at the bottom of the page to create your first inbound.
-
Update X-Ray:
-
Export Links:
As of 2025, the Great Firewall has become more sophisticated. Here are alternative and complementary methods:
- Shadowsocks with obfuscation plugins - Still effective with proper configuration
- Trojan-GFW - Mimics HTTPS traffic effectively
- WireGuard - Fast and lightweight, though requires careful configuration
- Hysteria/Hysteria2 - UDP-based protocol optimized for unstable connections
- Freegate - Developed by Falun Gong practitioners, still actively maintained
- Psiphon - Open-source circumvention tool
- Lantern - P2P censorship circumvention tool
- Tor with Snowflake bridges - Requires specific configuration for China
- Surfshark - Fast connections to nearby servers
- Proton VPN - Strong security features
- Private Internet Access (PIA)
- Astrill - Specifically designed for China but expensive (~$30/month)
- International roaming SIM cards - Most reliable but expensive
- Hong Kong SIM cards - Work well if obtained before entering mainland China
- Satellite internet - Emerging option but heavily regulated
- NEVER use plain HTTP admin panels - They are vulnerable to interception
- Always use HTTPS with strong passwords
- Enable two-factor authentication where available
- Regularly update your server software
- Monitor for unusual traffic patterns
- The CCP has intensified VPN crackdowns with automated detection systems
- GFW blocks outbound IPs in batches around 4 PM daily
- Server IPs may be blocked within days or weeks - have backup servers ready
-
Install a V2ray Client:
- iOS: Shadowrocket (paid), Quantumult X, Surge
- Android: v2rayNG (free), Surfboard
- Windows: v2rayN (supports REALITY protocol as of v6.17+)
- macOS: V2RayXS, Qv2ray
- Linux: v2ray-core with GUI options like Qv2ray
-
Configure V2ray Client:
- Open the V2ray client.
- Locate the settings or configuration options.
-
Import Configuration:
- Import the V2ray configuration by pasting the link provided by your server setup (Step 25 in the server setup section).
-
Connect:
- Connect to the V2ray server by clicking the connect button in the V2ray client.
Please note that specific instructions for the V2ray client may vary based on the client you choose.












