Notes on v2ray Configuration
- 
    
Some notes on v2ray configuration
 - 
    
Scripts for installation
 
https://git.io/v2ray.sh
- v2ray中的数据流向(摘自https://toutyrater.github.io/)。可以看出,直接交互的是客户端的outbound和服务器的inbound。
 
{浏览器} <--(socks)--> {V2Ray 客户端 inbound <-> V2Ray 客户端 outbound} <--(VMess)-->  {V2Ray 服务器 inbound <-> V2Ray 服务器 outbound} <--(Freedom)--> {目标网站}
- 几种出口协议
    
- VMess
 - shadowsocks
 - freedom: 直连
 - blackhole: 只吞入数据,相当于阻止访问
 
 
Explaination for the configuration file
- See https://www.v2ray.com/en/configuration/overview.html
 - See https://stackoverflow.com/questions/20778771/what-is-the-difference-between-0-0-0-0-127-0-0-1-and-localhost difference between 
0.0.0.0,localhostand127.0.0.1 
终端应用
- 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