v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
745 stars 425 forks source link

关于outbound HTTPS代理问题[bug] #214

Closed ghost closed 3 years ago

ghost commented 3 years ago

与 bug 有关的页面

https://guide.v2fly.org/basics/http.html#配置

可能是我的bug,不是你的bug。不过我不太geek,所以特此请教下

在路由跑v2ray透明代理能用。然后我尝试把机场clash的一个https节点改进去,参考你的 https://guide.v2fly.org/basics/http.html#配置 设置

发现用不了(能启动,但打开外网都一直菊花) 想请你看看我代码是否有误

CLICK ME ** ``` { "inbounds": [ { "port": 1234, "listen": "0.0.0.0", "protocol": "dokodemo-door", "settings": { "network": "tcp", "followRedirect": true }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } ], "outbounds": [ { "protocol": "http", "settings": { "servers": [ { "address": "domain.com",//服务器IP "port": 1024,//服务器端口 "users": [ { "Username": "54896745695",//将my-username改为你的用户名. "Password": "1114a99d-df04-4951-a5e0-ca617916d09e" //将my-password改为你的密码 } ] } ] }, "streamSettings": { "security": "tls", //如果是HTTPS代理,需要將none改為tls "tlsSettings": { "allowInsecure": false //检测证书有效性 } } } ], "routing": { "rules": [ { "domain": ["ext:h2y.dat:ad"], "type": "field", "outboundTag": "block" }, { "type": "field", "outboundTag": "proxy", "domain": [ "ext:h2y.dat:gfw", "domain:google.com.hk", "domain:github.com" ] }, { "type": "field", "outboundTag": "proxy",//TELEGRAM "ip": [ "91.108.12.0/22", "149.154.172.0/22", "91.108.16.0/22", "91.108.56.0/23", "149.154.168.0/22", "91.108.4.0/22", "91.108.8.0/22", "91.108.56.0/22", "149.154.160.0/20", "149.154.164.0/22" ] }, { "type": "field", "network": "tcp,udp", "outboundTag": "direct" } ] } } `
ghost commented 3 years ago

已解决


    "outbounds": [
        {
            "protocol": "http",
            "settings": {
                "servers": [
                    {
                        "address": "domain.com",
                        "port": 2998,
                        "users": [
                            {
                                "user": "user",
                                "pass": "passwd"
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {"security": "tls"}
        }
    ],