Franc Gossin Blog: Install v2ray on VPS in China Mainland

Franc Gossin Blog by Franc Gossin is licensed under CC BY-NC-ND 4.0

2025-06-09

Install v2ray on VPS in China Mainland

For those Chinese who often travel abroad, it would be better to have a VPN server that routes the internet traffic back to China. For example, some music or government website will reject requests outside China.

Requirements:
Upload fhs-install-v2ray and v2ray-core to your server.
Make script runable with
chmod +x ./install-release.sh
Then, run
./install-release.sh -l ./v2ray-linux-64.zip 
After that, you can configure v2ray in
/usr/local/etc/v2ray/
Run systemctl enable v2ray to run v2ray at startup.

When I configure it on client side, clash-verge-rev, I found out that the alterId in proxies must be defined. And for some reason I have to run 
export V2RAY_VMESS_AEAD_FORCED=false
and add this to v2ray.service
Environment='V2RAY_VMESS_AEAD_FORCED=false'
And you may also work around by setting alterId=0.

Related:

No comments:

Post a Comment