|
本帖最后由 zhqiang 于 2019-5-28 22:47 编辑
你好,我刚刚接触v2——ray,试着使用它来中转nf流量,两台机子单独运行都没有问题,但是如果我在中转机器使用了下列配置,总是连接不上任何网站?能帮我看看是哪里除了问题吗?
对了,我两台机子都使用的是ws+tls,谢谢!
- {
- "inbound": {
- "port": 23377,
- "listen": "127.0.0.1",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "5a3fedc1-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "alterId": 64
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "wsSettings": {
- "path": "/",
- "headers": {
- "Host": "www.12345678.com"
- }
- }
- }
- },
- "outbound": [
- {
- "tag": "direct",
- "protocol": "freedom",
- "settings": {
- "response": null
- }
- },
- {
- "tag": "netflix",
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "port": 443,
- "address": "www.xxx.com",
- "users": [
- {
- "alterId": 64,
- "security": "auto",
- "id": "234864e5-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
- }
- ]
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "wsSettings": {
- "path": "/",
- "headers": {
- "host": "www.abcdefgh.com"
- }
- }
- }
- },
- {
- "tag": "block",
- "protocol": "blackhole",
- "settings": {}
- }
- ],
- "routing": {
- "domainStrategy": "AsIs",
- "rules": [
- {
- "ip": [
- "geoip:private"
- ],
- "domain": null,
- "type": "field",
- "port": null,
- "outboundTag": "blocked"
- },
- {
- "type": "field",
- "port": null,
- "outboundTag": "netflix",
- "ip": null,
- "domain": [
- "geosite:netflix"
- ]
- }
- ]
- }
- }
复制代码 |
|