欢迎光临
我们一直在努力

备忘

bash <(curl -L -s https://install.direct/go.sh)

 

服务端

{
“log” : {
“access”: “/var/log/v2ray/access.log”,
“error”: “/var/log/v2ray/error.log”,
“loglevel”: “warning”
},
“inbound”: {
“port”: 19254, //(此端口与nginx配置相关)
“listen”: “127.0.0.1”,
“protocol”: “vmess”,
“settings”: {
“clients”: [
{
“id”: “ed8dacd2-ec76-41e2-93e1-1c1a4eec8d34”, //你的UUID, 此ID需与客户端保持一致
“level”: 1,
“alterId”: 64 //此ID也需与客户端保持一致
}
]
},
“streamSettings”:{
“network”: “ws”,
“wsSettings”: {
“path”: “/ray” //与nginx配置相关
}
}
},
“outbound”: {
“protocol”: “freedom”,
“settings”: {}
},
“outboundDetour”: [
{
“protocol”: “blackhole”,
“settings”: {},
“tag”: “blocked”
}
],
“routing”: {
“strategy”: “rules”,
“settings”: {
“rules”: [
{
“type”: “field”,
“ip”: [
“0.0.0.0/8”,
“10.0.0.0/8”,
“100.64.0.0/10”,
“127.0.0.0/8”,
“169.254.0.0/16”,
“172.16.0.0/12”,
“192.0.0.0/24”,
“192.0.2.0/24”,
“192.168.0.0/16”,
“198.18.0.0/15”,
“198.51.100.0/24”,
“203.0.113.0/24”,
“::1/128”,
“fc00::/7”,
“fe80::/10”
],
“outboundTag”: “blocked”
}
]
}
}
}

 

 

 

nginx

 

location /ray { #/ray 路径需要和v2ray服务器端,客户端保持一致 proxy_redirect off; proxy_pass http://127.0.0.1:10000; #此IP地址和端口需要和v2ray服务器保持一致, proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”; proxy_set_header Host $http_host;

赞(0) 打赏
未经允许不得转载:过客网络 » 备忘
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

分享是一种美德,是一种态度。

联系我们联系我们