• Some notes on v2ray configuration

  • Scripts for installation

https://git.io/v2ray.sh
{浏览器} <--(socks)--> {V2Ray 客户端 inbound <-> V2Ray 客户端 outbound} <--(VMess)-->  {V2Ray 服务器 inbound <-> V2Ray 服务器 outbound} <--(Freedom)--> {目标网站}
  • 几种出口协议
    • VMess
    • shadowsocks
    • freedom: 直连
    • blackhole: 只吞入数据,相当于阻止访问

Explaination for the configuration file

终端应用

  • github
#这里的socks5://127.0.0.1:10808应当和本地v2ray配置文件的inbound一致
git config --global http.https://github.com.proxy socks5://127.0.0.1:10808
  • curl
#这里的socks5h://localhost:10808应当和本地v2ray配置文件的inbound一致
curl -x socks5h://localhost:10808 www.google.com
  • wget 默认不支持socks5代理…

Tips

  • 注意系统时间设置,如果VPS和本地机系统时间不一致v2ray无法正确使用

  • Generate uuid in linux terminal : uuidgen

Some useful resources