kuoruan / luci-app-v2ray

LuCI support for V2Ray
1.18k stars 281 forks source link

【Help】连接不上,百般折腾不得其解? #416

Closed BI7PRK closed 3 years ago

BI7PRK commented 3 years ago

可以确定,服务端配置没有问题,因为运行V2ray-core可以正常连接和代理。

但是在OpenWRT 中就无法正常连接。不知道哪里错了? 版本:2.0.0-1

配置文件:

{
    "log": {
        "access": "/dev/null",
        "loglevel": "debug",
        "error": "/var/log/v2ray-error.log"
    },
    "dns": {
        "servers": [
            "1.1.1.1",
            "8.8.8.8",
            {
                "address": "114.114.114.114",
                "port": 53,
                "domains": [
                    "geosite:cn"
                ]
            },
            {
                "address": "223.5.5.5",
                "port": 53,
                "domains": [
                    "geosite:cn"
                ]
            }
        ]
    },
    "routing": {
        "domainStrategy": "AsIs",
        "rules": [
            {
                "type": "field",
                "ip": [
                    "geoip:private",
                    "geoip:cn"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:cn"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "protocol": [
                    "bittorrent"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "domain": [
                    "geosite:category-ads-all"
                ],
                "outboundTag": "block"
            },
            {
                "type": "field",
                "port": "53",
                "network": "udp",
                "inboundTag": [
                    "transparent"
                ],
                "outboundTag": "dns_out"
            },
            {
                "type": "field",
                "ip": [
                    "114.114.114.114",
                    "223.5.5.5"
                ],
                "outboundTag": "direct"
            },
            {
                "type": "field",
                "ip": [
                    "1.1.1.1",
                    "8.8.8.8",
                    "208.67.222.222"
                ],
                "outboundTag": "proxy"
            },
            {
                "type": "field",
                "port": "123",
                "network": "udp",
                "outboundTag": "direct"
            }
        ]
    },
    "inbounds": [
        {
            "listen": "0.0.0.0",
            "port": 10809,
            "protocol": "dokodemo-door",
            "settings": {
                "followRedirect": true,
                "network": "tcp"
            },
            "streamSettings": {
                "network": "tcp",
                "tcpSettings": {

                },
                "sockopt": {
                    "tproxy": "redirect"
                }
            },
            "tag": "transparent",
            "sniffing": {
                "enabled": false,
                "destOverride": [
                    "http",
                    "tls"
                ]
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "settings": {

            },
            "streamSettings": {
                "sockopt": {
                    "mark": 255
                }
            },
            "tag": "direct"
        },
        {
            "sendThrough": "0.0.0.0",
            "protocol": "blackhole",
            "settings": {

            },
            "streamSettings": {
                "network": "tcp",
                "tcpSettings": {

                },
                "sockopt": {
                    "mark": 255,
                    "tcpFastOpen": true
                }
            },
            "tag": "block"
        },
        {
            "protocol": "dns",
            "settings": {

            },
            "streamSettings": {
                "sockopt": {
                    "mark": 255
                }
            },
            "tag": "dns_out"
        },
        {
            "sendThrough": "0.0.0.0",
            "protocol": "vmess",
            "settings": {
                "vnext": [
                    {
                        "address": "****",
                        "port": 34**1,
                        "users": [
                            {
                                "id": "9f50e25c-******",
                                "alterId": 64,
                                "security": "auto",
                                "level": 1
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "tcpSettings": {
                    "header": {
                        "type": "http",
                        "request": {
                            "version": "1.1",
                            "method": "PUT",
                            "path": [
                                "/"
                            ],
                            "headers": {
                                "User-Agent": [
                                    "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36"
                                ],
                                "Accept-Encoding": [
                                    "gzip, deflate"
                                ],
                                "Connection": [
                                    "keep-alive"
                                ],
                                "Pragma": [
                                    "no-cache"
                                ],
                                "Host": [
                                    "www.bing.com"
                                ]
                            }
                        },
                        "response": {

                        }
                    }
                },
                "sockopt": {
                    "mark": 255,
                    "tcpFastOpen": true
                }
            },
            "tag": "proxy",
            "mux": {
                "enabled": true,
                "concurrency": 8
            }
        }
    ]
}

日志打印:


2021/07/20 23:04:03 [Debug] [853321521] proxy/dokodemo: processing connection from: 192.168.1.100:7468
2021/07/20 23:04:03 [Info] [853321521] proxy/dokodemo: received request for 192.168.1.100:7468
2021/07/20 23:04:03 [Debug] [3024087089] proxy/dokodemo: processing connection from: 192.168.1.100:7467
2021/07/20 23:04:03 [Info] [3024087089] proxy/dokodemo: received request for 192.168.1.100:7467
2021/07/20 23:04:03 [Info] [853321521] app/dispatcher: default route for tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [853321521] proxy/freedom: opening connection to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [853321521] transport/internet/tcp: dialing TCP to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3024087089] app/dispatcher: default route for tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3024087089] proxy/freedom: opening connection to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3024087089] transport/internet/tcp: dialing TCP to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3024087089] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > proxy/freedom: failed to process response > read tcp 192.168.1.2:58058->209.126.124.166:443: read: connection reset by peer
2021/07/20 23:04:03 [Info] [3024087089] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > proxy/dokodemo: failed to transport response > io: read/write on closed pipe
2021/07/20 23:04:03 [Debug] [3882743592] proxy/dokodemo: processing connection from: 192.168.1.100:7472
2021/07/20 23:04:03 [Info] [3882743592] proxy/dokodemo: received request for 192.168.1.100:7472
2021/07/20 23:04:03 [Info] [3882743592] app/dispatcher: default route for tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3882743592] proxy/freedom: opening connection to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [3882743592] transport/internet/tcp: dialing TCP to tcp:209.126.124.166:443
2021/07/20 23:04:03 [Info] [853321521] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > proxy/freedom: failed to process response > read tcp 192.168.1.2:58056->209.126.124.166:443: read: connection reset by peer
2021/07/20 23:04:03 [Info] [853321521] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > proxy/dokodemo: failed to transport response > io: read/write on closed pipe
2021/07/20 23:04:03 [Info] [307539628] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:04 [Debug] [3665356541] proxy/dokodemo: processing connection from: 192.168.1.100:7473
2021/07/20 23:04:04 [Info] [3665356541] proxy/dokodemo: received request for 192.168.1.100:7473
2021/07/20 23:04:04 [Info] [3665356541] app/dispatcher: default route for tcp:95.217.104.34:443
2021/07/20 23:04:04 [Info] [3665356541] proxy/freedom: opening connection to tcp:95.217.104.34:443
2021/07/20 23:04:04 [Info] [3665356541] transport/internet/tcp: dialing TCP to tcp:95.217.104.34:443
2021/07/20 23:04:04 [Debug] [2360839649] proxy/dokodemo: processing connection from: 192.168.1.100:1100
2021/07/20 23:04:04 [Info] [2360839649] proxy/dokodemo: received request for 192.168.1.100:1100
2021/07/20 23:04:04 [Info] [2360839649] app/dispatcher: default route for tcp:209.126.124.166:443
2021/07/20 23:04:04 [Info] [2360839649] proxy/freedom: opening connection to tcp:209.126.124.166:443
2021/07/20 23:04:04 [Info] [2360839649] transport/internet/tcp: dialing TCP to tcp:209.126.124.166:443
2021/07/20 23:04:04 [Debug] [2923292046] proxy/dokodemo: processing connection from: 192.168.1.100:7474
2021/07/20 23:04:04 [Info] [2923292046] proxy/dokodemo: received request for 192.168.1.100:7474
2021/07/20 23:04:04 [Info] [2923292046] app/dispatcher: default route for tcp:142.250.72.164:443
2021/07/20 23:04:04 [Info] [2923292046] proxy/freedom: opening connection to tcp:142.250.72.164:443
2021/07/20 23:04:04 [Info] [2923292046] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:05 [Info] [4168578519] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2021/07/20 23:04:05 [Info] [4168578519] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:05 [Info] [4168578519] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:06 [Debug] [945036679] proxy/dokodemo: processing connection from: 192.168.1.100:7482
2021/07/20 23:04:06 [Info] [945036679] proxy/dokodemo: received request for 192.168.1.100:7482
2021/07/20 23:04:06 [Info] [945036679] app/dispatcher: default route for tcp:34.98.64.218:443
2021/07/20 23:04:06 [Info] [945036679] proxy/freedom: opening connection to tcp:34.98.64.218:443
2021/07/20 23:04:06 [Info] [945036679] transport/internet/tcp: dialing TCP to tcp:34.98.64.218:443
2021/07/20 23:04:06 [Debug] [3011911283] proxy/dokodemo: processing connection from: 192.168.1.100:7485
2021/07/20 23:04:06 [Info] [3011911283] proxy/dokodemo: received request for 192.168.1.100:7485
2021/07/20 23:04:06 [Info] [3011911283] app/dispatcher: default route for tcp:34.98.64.218:443
2021/07/20 23:04:06 [Info] [3011911283] proxy/freedom: opening connection to tcp:34.98.64.218:443
2021/07/20 23:04:06 [Info] [3011911283] transport/internet/tcp: dialing TCP to tcp:34.98.64.218:443
2021/07/20 23:04:06 [Info] [4168578519] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:06 [Info] [3266233008] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:06 [Info] [1874848558] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:06 [Info] [2107020129] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:06 [Info] [4168578519] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: failed to open connection to tcp:142.250.72.164:443 > common/retry: [dial tcp 142.250.72.164:443: i/o timeout dial tcp 142.250.72.164:443: operation was canceled] > common/retry: all retry attempts failed
2021/07/20 23:04:07 [Info] [548324538] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:08 [Info] [3882743592] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2021/07/20 23:04:08 [Info] [3882743592] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled
2021/07/20 23:04:09 [Info] [3543004420] transport/internet/tcp: dialing TCP to tcp:142.250.72.164:443
2021/07/20 23:04:10 [Info] [3194950688] transport/internet/tcp: dialing TCP to tcp:208.101.60.87:443
2021/07/20 23:04:11 [Info] [461341010] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2021/07/20 23:04:11 [Info] [461341010] transport/internet/tcp: dialing TCP to tcp:108.160.169.171:443
2021/07/20 23:04:11 [Info] [461341010] transport/internet/tcp: dialing TCP to tcp:108.160.169.171:443
2021/07/20 23:04:11 [Info] [461341010] transport/internet/tcp: dialing TCP to tcp:108.160.169.171:443
2021/07/20 23:04:12 [Info] [3665356541] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: connection ends > context canceled
2021/07/20 23:04:12 [Info] [461341010] app/proxyman/outbound: failed to process outbound traffic > proxy/freedom: failed to open connection to tcp:108.160.169.171:443 > common/retry: [dial tcp 108.160.169.171:443: i/o timeout dial tcp 108.160.169.171:443: operation was canceled] > common/retry: all retry attempts failed