v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.4k stars 8.95k forks source link

HTTP入站代理有缺陷 io: read/write on closed pipe 无法收听喜马拉雅收费内容 #2709

Closed Neverends4 closed 3 years ago

Neverends4 commented 4 years ago

除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。 如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) 4.26 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。

安卓手机(android10,国产/第三方ROM均尝试过)wifi设置使用http代理,手动指向安装v2ray的旁路由的局域网地址上网,v2ray路由有四个入站,httproute/socksroute使用路由规则开放给手机等需要判定规则的客户端,httptunnel/sockstunnel全局代理给dnscrypt-proxy这类不需要判断的软件 其中路由部分使用国内白名单/GFW模式都试过,结果一样。

3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) google/youtube等正常,但喜马拉雅收费内容无法收听,提示网络错误

4) 你期待看到的正确表现是怎样的? 正常访问喜马拉雅收费内容 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:

外网访问正常,与服务器无关,略,下同。

客户端配置:

我用的分组配置合在一起的,可能最外面多了几个大括号,请忽略。基本外网访问是正常的。没有设置DNS,默认localhost,本地是dnsmasq+dnscrypt-proxy模式,dig google和本地网站结果均正常。

 "inbounds": [
    {
      "tag": "sockstunnel",
      "port": 51077,
      "listen": "127.0.0.1",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "auth": "noauth",
    "udp": true,
        "ip":  "127.0.0.1",
        "address": null,
        "clients": null
      },
      "streamSettings": null
    },
  {
      "tag": "httptunnel",
      "port": 51078,
      "listen": "0.0.0.0",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "timeout":0,
        "auth": "noauth",
    "allowTransparent": true,
        "ip": null,
        "address": null,
        "clients": null
      },
      "streamSettings": null
    },
    {
      "tag": "httproute",
      "port": 51079,
      "listen": "0.0.0.0",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "timeout":0,
    "allowTransparent": false
      },
      "streamSettings": null
    },
    {
      "tag": "socksroute",
      "port": 51080,
      "listen": "0.0.0.0",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "auth": "noauth",
    "udp": true,
        "ip":  "192.168.4.66",##旁路由IP
        "address": null,
        "clients": null
      },
      "streamSettings": null
    }
  ]
}

"outbounds": [
      {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "vnext": null,
        "servers": null,
        "response": null
      },
      "streamSettings": null,
      "mux": null
    },
    {
      "tag": "proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "MY VPS IP",
            "port": 443,
            "users": [
              {
                "id": "MY UUID",
                "alterId": 8,
        "testsEnabled":"VMessAEAD",
                "security": "none"
              }
            ]
          }
        ],
        "servers": null,
        "response": null
      },
      "streamSettings": {
        "network": "tcp",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": ""
        },
        "tcpSettings": null,
        "kcpSettings": null,
        "wsSettings": null,
        "httpSettings": null,
        "quicSettings": null
      },
      "mux": {
        "enabled": true,
        "concurrency": 8
      }
    },
    {
            "protocol": "dns",
            "tag": "dns-out"
     },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "vnext": null,
        "servers": null,
        "response": {
          "type": "http"
        }
      },
      "streamSettings": null,
      "mux": null
    }
  ]
}

{
"routing": {
    "domainStrategy": "IpIfNonMatch",
    "rules": [
        {
                "type": "field",
                "inboundTag": "sockstunnel",
                "outboundTag": "proxy"
         },
        {
                "type": "field",
                "inboundTag": "httptunnel",
                "outboundTag": "proxy"
         },
{
        "type": "field",
        "outboundTag": "proxy",
        "domain": [
          "full:www.icloud.com",
          "domain:icloud-content.com"
        ]
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "geosite:tld-cn",
          "geosite:icloud"
        ]
      },
      {
        "type": "field",
        "outboundTag": "proxy",
        "domain": [
          "geosite:geolocation-!cn"
        ]
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "geosite:cn",
          "MY VPS DOMAIN"
        ]
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ]
      },
    {
        "type": "field",
        "network":"tcp,udp",
        "outboundTag": "proxy"
    }
    ]
      }
}

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

客户端错误日志:

v2ray访问地址失败,io: read/write on closed pipe:

v2.png

8) 其它相关的配置文件(如 Nginx)和相关日志。

dnsmasq正确解析了server地址:

dnsmasq.png

Neverends4 commented 4 years ago

之所以标题写“HTTP入站代理有缺陷”,是因为我已经曲线救国解决了这个问题: 使用privoxy,在旁路由再开一个http代理给手机,privoxy指向上游v2ray的socksroute,手机wifi的代理填写privoxy这个http代理端口,此时喜马拉雅播放和google/youtube就都正常了。 如果privoxy指向上游v2ray的httproute,喜马拉雅仍然无法播放! 使用v2ray自己开一个http指向v2ray自己的socksroute,喜马拉雅还是无法播放! http入站里"allowTransparent" true/false都试过,结果一样。 由此推测是v2ray的http入站导致的问题。

另外还做了一些测试: 断开wifi用数据流量即正常,wifi不设置手动代理自然正常。如果不用http代理方式,手机使用pac文件代理也可以正常播放,手机用v2rayng客户端连接同一个VPS(绕开大陆和LAN地址路由)也可以正常播放!

http入站开放给局域网设备是很有用的一个功能,因为目前安卓/ios系统都自带这个功能,无需第三方客户端,也无需设置复杂的全局透明代理,研究iptables转发,不用考虑BT协议分流问题,已经可以满足基本的访问需求。虽然目前可以通过privoxy绕过,但还请解决下。

darhwa commented 4 years ago

感谢你找到了问题所在。

但是能否麻烦你再提供点客户端访问日志里类似于如下的行:

2020/08/29 18:03:51 tcp:127.0.0.1:*** accepted tcp:m4.cnc.ximalaya.com:***

由于http代理处理80端口跟处理其他端口的逻辑有些许不同,这能帮助更精确地定位问题。多谢!

Neverends4 commented 4 years ago

感谢你找到了问题所在。

但是能否麻烦你再提供点客户端访问日志里类似于如下的行:

2020/08/29 18:03:51 tcp:127.0.0.1:*** accepted tcp:m4.cnc.ximalaya.com:***

由于http代理处理80端口跟处理其他端口的逻辑有些许不同,这能帮助更精确地定位问题。多谢!

专门开了一个v2ray只开放http代理来捉,不过手机上难免有其他app,将就看下,另外URL去敏感真麻烦,所以就抓了2秒,你先看看不够我再弄~

dnsmasq解析

Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 query[A] mobile.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.210
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.194
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.196
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.211
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.213
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.193
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.195
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.209
Aug 29 22:06:02 dnsmasq[4408]: 114010 192.168.4.11/40343 cached m4.cnc.ximalaya.com is 211.95.37.212
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 query[A] mobile.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.212
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.210
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.194
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.196
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.211
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.213
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.193
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.195
Aug 29 22:06:02 dnsmasq[4408]: 114011 192.168.4.11/17037 cached m4.cnc.ximalaya.com is 211.95.37.209
Aug 29 22:06:02 dnsmasq[4408]: 114012 192.168.4.11/57043 query[A] m.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114012 192.168.4.11/57043 cached m.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114012 192.168.4.11/57043 cached m.ximalaya.com.wsglb0.com is 14.205.40.9
Aug 29 22:06:02 dnsmasq[4408]: 114013 192.168.4.11/54567 query[A] gslbtx.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114013 192.168.4.11/54567 cached gslbtx.ximalaya.com is 118.25.119.177
Aug 29 22:06:02 dnsmasq[4408]: 114014 192.168.4.102/59988 query[PTR] 66.4.168.192.in-addr.arpa from 192.168.4.102
Aug 29 22:06:02 dnsmasq[4408]: 114014 192.168.4.102/59988 config 192.168.4.66 is NXDOMAIN
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 query[A] dnsbs.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 forwarded dnsbs.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 query[A] dnsbs.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 forwarded dnsbs.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114017 127.0.0.1/50924 query[AAAA] dnsbs.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114017 127.0.0.1/50924 forwarded dnsbs.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply dnsbs.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply mobilebs.cnc.ximalaya.com is 112.65.44.58
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply mobilebs.cnc.ximalaya.com is 112.65.44.59
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply mobilebs.cnc.ximalaya.com is 112.65.44.54
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply mobilebs.cnc.ximalaya.com is 112.65.44.56
Aug 29 22:06:02 dnsmasq[4408]: 114015 192.168.4.11/50732 reply mobilebs.cnc.ximalaya.com is 112.65.44.55
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply dnsbs.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply mobilebs.cnc.ximalaya.com is 112.65.44.58
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply mobilebs.cnc.ximalaya.com is 112.65.44.59
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply mobilebs.cnc.ximalaya.com is 112.65.44.54
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply mobilebs.cnc.ximalaya.com is 112.65.44.56
Aug 29 22:06:02 dnsmasq[4408]: 114016 127.0.0.1/55928 reply mobilebs.cnc.ximalaya.com is 112.65.44.55
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 query[A] dns.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 forwarded dns.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114017 127.0.0.1/50924 reply dnsbs.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114017 127.0.0.1/50924 reply mobilebs.cnc.ximalaya.com is NODATA-IPv6
Aug 29 22:06:02 dnsmasq[4408]: 114025 127.0.0.1/33130 query[AAAA] mobile.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114025 127.0.0.1/33130 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114025 127.0.0.1/33130 cached m4.cnc.ximalaya.com is NODATA-IPv6
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 query[A] mobile.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.209
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.212
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.210
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.194
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.196
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.211
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.213
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.193
Aug 29 22:06:02 dnsmasq[4408]: 114026 127.0.0.1/60104 cached m4.cnc.ximalaya.com is 211.95.37.195
Aug 29 22:06:02 dnsmasq[4408]: 114027 192.168.4.11/16175 query[A] adse.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114027 192.168.4.11/16175 forwarded adse.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 query[A] adse.ximalaya.com from 192.168.4.11
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 forwarded adse.ximalaya.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114029 127.0.0.1/47998 query[AAAA] mobile.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114029 127.0.0.1/47998 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114029 127.0.0.1/47998 cached m4.cnc.ximalaya.com is NODATA-IPv6
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 query[A] mobile.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached mobile.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.195
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.209
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.212
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.210
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.194
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.196
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.211
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.213
Aug 29 22:06:02 dnsmasq[4408]: 114030 127.0.0.1/49654 cached m4.cnc.ximalaya.com is 211.95.37.193
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply dns.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.238
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.229
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 211.95.37.209
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.228
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.240
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.226
Aug 29 22:06:02 dnsmasq[4408]: 114024 192.168.4.11/2151 reply m1.cnc.ximalaya.com is 140.207.215.253
Aug 29 22:06:02 dnsmasq[4408]: 114031 127.0.0.1/35481 query[AAAA] m.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114031 127.0.0.1/35481 cached m.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114031 127.0.0.1/35481 cached m.ximalaya.com.wsglb0.com is NODATA-IPv6
Aug 29 22:06:02 dnsmasq[4408]: 114032 127.0.0.1/42957 query[A] m.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114032 127.0.0.1/42957 cached m.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114032 127.0.0.1/42957 cached m.ximalaya.com.wsglb0.com is 14.205.40.9
Aug 29 22:06:02 dnsmasq[4408]: 114033 127.0.0.1/59042 query[AAAA] ulogs.umeng.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114033 127.0.0.1/59042 forwarded ulogs.umeng.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114034 127.0.0.1/37280 query[A] ulogs.umeng.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114034 127.0.0.1/37280 forwarded ulogs.umeng.com to 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114035 127.0.0.1/56490 query[AAAA] mermaid.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114035 127.0.0.1/56490 cached mermaid.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114035 127.0.0.1/56490 cached otbs.cnc.ximalaya.com is NODATA-IPv6
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 query[A] mermaid.ximalaya.com from 127.0.0.1
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached mermaid.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached otbs.cnc.ximalaya.com is 61.172.194.185
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached otbs.cnc.ximalaya.com is 112.65.44.35
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached otbs.cnc.ximalaya.com is 61.172.194.184
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached otbs.cnc.ximalaya.com is 112.65.44.45
Aug 29 22:06:02 dnsmasq[4408]: 114036 127.0.0.1/47827 cached otbs.cnc.ximalaya.com is 61.172.194.186
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply adse.ximalaya.com is <CNAME>
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 140.207.215.237
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 140.207.215.236
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 211.95.37.214
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 140.207.215.241
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 211.95.37.216
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 211.95.37.215
Aug 29 22:06:02 dnsmasq[4408]: 114028 192.168.4.11/6137 reply ad.cnc.ximalaya.com is 140.207.214.244

error.log

2020/08/29 22:05:29 [Warning] v2ray.com/core: V2Ray 4.26.0 started
2020/08/29 22:06:02 [Warning] [2005816391] v2ray.com/core/proxy/http: failed to read response from 211.95.37.194 > io: read/write on closed pipe
2020/08/29 22:06:02 [Warning] [1595258075] v2ray.com/core/proxy/http: failed to read response from 211.95.37.215 > io: read/write on closed pipe
2020/08/29 22:06:02 [Warning] [3595284990] v2ray.com/core/proxy/http: failed to read response from 211.95.37.215 > io: read/write on closed pipe
2020/08/29 22:06:02 [Warning] [3743645253] v2ray.com/core/proxy/http: failed to read response from 211.95.37.194 > io: read/write on closed pipe
2020/08/29 22:06:02 [Warning] [1929646642] v2ray.com/core/proxy/http: failed to read response from 61.172.194.186 > io: read/write on closed pipe
2020/08/29 22:06:03 [Warning] [1106407031] v2ray.com/core/proxy/http: failed to read response from 140.207.219.166 > io: read/write on closed pipe
2020/08/29 22:06:06 [Warning] [1162954460] v2ray.com/core/proxy/http: failed to read response from 211.95.37.214 > io: read/write on closed pipe
2020/08/29 22:06:07 [Warning] [3443048470] v2ray.com/core/proxy/http: failed to read response from 211.95.37.193 > io: read/write on closed pipe
2020/08/29 22:06:07 [Warning] [3994325150] v2ray.com/core/proxy/http: failed to read response from 140.207.219.173 > io: read/write on closed pipe
2020/08/29 22:06:07 [Warning] [2783127058] v2ray.com/core/proxy/http: failed to read response from 211.95.37.196 > io: read/write on closed pipe
2020/08/29 22:06:07 [Warning] [183278817] v2ray.com/core/proxy/http: failed to read response from 211.95.37.196 > io: read/write on closed pipe
2020/08/29 22:06:07 [Warning] [3587685182] v2ray.com/core/proxy/http: failed to read response from 211.95.37.196 > io: read/write on closed pipe
2020/08/29 22:06:08 [Warning] [665989232] v2ray.com/core/proxy/http: failed to read response from 140.207.219.162 > io: read/write on closed pipe
2020/08/29 22:06:08 [Warning] [3294654229] v2ray.com/core/proxy/http: failed to read response from 140.207.219.162 > io: read/write on closed pipe
2020/08/29 22:06:08 [Warning] [644308754] v2ray.com/core/proxy/http: failed to read response from 140.207.214.241 > io: read/write on closed pipe
2020/08/29 22:06:08 [Warning] [1301775996] v2ray.com/core/proxy/http: failed to read response from 140.207.219.166 > io: read/write on closed pipe
2020/08/29 22:06:09 [Warning] [2642040158] v2ray.com/core/proxy/http: failed to read response from 211.95.37.209 > io: read/write on closed pipe
2020/08/29 22:06:09 [Warning] [1418948780] v2ray.com/core/proxy/http: failed to read response from 140.207.215.234 > io: read/write on closed pipe
2020/08/29 22:06:12 [Warning] [2960207813] v2ray.com/core/proxy/http: failed to read response from 140.207.215.236 > io: read/write on closed pipe
2020/08/29 22:06:32 [Warning] [1926276260] v2ray.com/core/proxy/http: failed to read response from android.bugly.qq.com > unexpected EOF

access.log

2020/08/29 22:06:01 192.168.4.11:49428 accepted http://mermaid.ximalaya.com/mermaid-apm-config-service/v1/logupload [direct] 
2020/08/29 22:06:01 192.168.4.11:49427 accepted http://mermaid.ximalaya.com/config/apm/v5/base [direct] 
2020/08/29 22:06:02 192.168.4.11:49431 accepted http://m.ximalaya.com/starwar/task/listen/serverTime [direct] 
2020/08/29 22:06:02 192.168.4.11:49429 accepted http://mobile.ximalaya.com/dog-portal/checkOld2/all/xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49430 accepted http://gslbtx.ximalaya.com/linkeye-cloud/httpdns/v3/init/xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49433 accepted http://mobile.ximalaya.com/football-portal/diff3/batch?groupNames=community,account,android,ad,sys,tob,toc,live,qiji,fufei,mermaid&signature=xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49432 accepted http://mobile.ximalaya.com/abtest-portal/sync/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49434 accepted http://mobile.ximalaya.com/facemask-portal/profile/features/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49435 accepted http://mermaid.ximalaya.com/config/ts/v1/currTime [direct] 
2020/08/29 22:06:02 192.168.4.11:49436 accepted http://mobile.ximalaya.com/firework-portal/v6/sync?appId=1 [direct] 
2020/08/29 22:06:02 192.168.4.11:49437 accepted http://dnsbs.ximalaya.com/xdns/iplist [direct] 
2020/08/29 22:06:02 192.168.4.11:49438 accepted http://android.bugly.qq.com/rqd/async?aid=xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49439 accepted http://211.95.37.194/mobile/switch/app_set?device=android [direct] 
2020/08/29 22:06:02 192.168.4.11:49440 accepted http://211.95.37.215/ting/loading/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49441 accepted http://211.95.37.215/ting/screen/xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49442 accepted http://211.95.37.194/discovery-category/customCategories/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49443 accepted http://mobile.ximalaya.com/mobile/switch/app_set?device=android [direct] 
2020/08/29 22:06:02 192.168.4.11:49444 accepted http://180.153.255.6/xdns/iplist [direct] 
2020/08/29 22:06:02 192.168.4.11:49445 accepted http://61.172.194.186/config/ts/v2/tracks/cdn/1/android [direct] 
2020/08/29 22:06:02 192.168.4.11:49446 accepted http://14.205.40.9/vip/check/user/xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49447 accepted http://mobile.ximalaya.com/discovery-category/customCategories/xxx[direct] 
2020/08/29 22:06:02 192.168.4.11:49449 accepted http://m.ximalaya.com/vip/check/user/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49448 accepted //ulogs.umeng.com:443 [direct] 
2020/08/29 22:06:02 192.168.4.11:49450 accepted http://mermaid.ximalaya.com/config/ts/v2/tracks/cdn/1/android [direct] 
2020/08/29 22:06:02 192.168.4.11:49452 accepted http://adse.ximalaya.com/ting/screen/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49451 accepted http://adse.ximalaya.com/ting/loading/xxx [direct] 
2020/08/29 22:06:02 192.168.4.11:49453 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:03 192.168.4.11:49454 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:03 192.168.4.11:49455 accepted //plbslog.umeng.com:443 [direct] 
2020/08/29 22:06:03 192.168.4.11:49457 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:03 192.168.4.11:49456 accepted http://140.207.219.166/api/v1/realtime [direct] 
2020/08/29 22:06:03 192.168.4.11:49458 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:03 192.168.4.11:49459 accepted http://xdcs-collector.ximalaya.com/api/v1/realtime [direct] 
2020/08/29 22:06:03 192.168.4.11:49460 accepted //ulogs.umeng.com:443 [direct] 
2020/08/29 22:06:03 192.168.4.11:49461 accepted //toblog.ctobsnssdk.com:443 [direct] 
2020/08/29 22:06:03 192.168.4.11:49462 accepted //140.207.214.242:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49467 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49468 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49466 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49469 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49464 accepted //dig.bdurl.net:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49463 accepted //sf3-ttcdn-tos.pstatp.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49465 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49470 accepted http://sdk.e.qq.com/launch [direct] 
2020/08/29 22:06:04 192.168.4.11:49471 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49472 accepted //14.204.139.120:443 [direct] 
2020/08/29 22:06:04 192.168.4.11:49473 accepted //api-access.pangolin-sdk-toutiao.com:443 [direct] 
2020/08/29 22:06:05 192.168.4.11:49475 accepted //mi.gdt.qq.com:443 [direct] 
2020/08/29 22:06:05 192.168.4.11:49474 accepted //mi.gdt.qq.com:443 [direct] 
2020/08/29 22:06:05 192.168.4.11:49476 accepted //sdk.e.qq.com:443 [direct] 
2020/08/29 22:06:05 192.168.4.11:49477 accepted http://sdk.e.qq.com/getad [direct] 
2020/08/29 22:06:05 192.168.4.11:49478 accepted //sdk.e.qq.com:443 [direct] 
2020/08/29 22:06:05 192.168.4.11:49479 accepted //211.95.37.214:443 [direct] 
2020/08/29 22:06:06 192.168.4.11:49480 accepted http://211.95.37.214/api/v1/adRealTime [direct] 
2020/08/29 22:06:06 192.168.4.11:49481 accepted http://adbehavior.ximalaya.com/api/v1/adRealTime [direct] 
2020/08/29 22:06:07 192.168.4.11:49482 accepted //211.95.37.216:443 [direct] 
2020/08/29 22:06:07 192.168.4.11:49483 accepted http://211.95.37.193/discovery-feed/isRecurringUser/xxx[direct] 
2020/08/29 22:06:07 192.168.4.11:49484 accepted http://140.207.219.173/front/appConfig [direct] 
2020/08/29 22:06:07 192.168.4.11:49485 accepted http://mobile.ximalaya.com/discovery-feed/isRecurringUser/xxx [direct] 
2020/08/29 22:06:07 192.168.4.11:49486 accepted http://search.ximalaya.com/front/appConfig [direct] 
2020/08/29 22:06:07 192.168.4.11:49487 accepted http://211.95.37.196/mobile/homePage/xxx [direct] 
2020/08/29 22:06:07 192.168.4.11:49488 accepted http://211.95.37.196/minor-protection-web/minorProtection/status/xxx [direct] 
2020/08/29 22:06:07 192.168.4.11:49489 accepted http://211.95.37.196/minor-protection-web/minorProtection/status/xxx [direct] 
2020/08/29 22:06:07 192.168.4.11:49490 accepted //dm.toutiao.com:443 [direct] 
2020/08/29 22:06:07 192.168.4.11:49491 accepted http://140.207.219.162/hotWordV2/xxx [direct] 
2020/08/29 22:06:07 192.168.4.11:49492 accepted http://mobile.ximalaya.com/mobile/homePage/xxx[direct] 
2020/08/29 22:06:07 192.168.4.11:49493 accepted http://mobile.ximalaya.com/minor-protection-web/minorProtection/status/xxx[direct] 
2020/08/29 22:06:07 192.168.4.11:49494 accepted http://140.207.219.162/hotWordBillboardCategory?layout=hotTab [direct] 
2020/08/29 22:06:07 192.168.4.11:49495 accepted http://mobile.ximalaya.com/minor-protection-web/minorProtection/status/xxx [direct] 
2020/08/29 22:06:08 192.168.4.11:49496 accepted http://dns.ximalaya.com/xdns/iplist [direct] 
2020/08/29 22:06:08 192.168.4.11:49497 accepted http://search.ximalaya.com/hotWordV2/xxx [direct] 
2020/08/29 22:06:08 192.168.4.11:49498 accepted http://mermaid.ximalaya.com/config/apm/v5/base [direct] 
2020/08/29 22:06:08 192.168.4.11:49499 accepted http://search.ximalaya.com/hotWordBillboardCategory?layout=hotTab [direct] 
2020/08/29 22:06:08 192.168.4.11:49500 accepted http://gslbtx.ximalaya.com/linkeye-cloud/httpdns/v3/init/xxx [direct] 
2020/08/29 22:06:08 192.168.4.11:49501 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:08 192.168.4.11:49502 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:08 192.168.4.11:49503 accepted http://180.153.255.6/xdns/iplist [direct] 
2020/08/29 22:06:08 192.168.4.11:49504 accepted http://mobile.ximalaya.com/mobile/track/v2/baseInfoxxx [direct] 
2020/08/29 22:06:08 192.168.4.11:49505 accepted http://mobwsa.ximalaya.com/firework-callback/v2/ad/xxx[direct] 
2020/08/29 22:06:08 192.168.4.11:49506 accepted //toblog.ctobsnssdk.com:443 [direct] 
2020/08/29 22:06:08 192.168.4.11:49508 accepted http://pv.sohu.com/cityjson [direct] 
2020/08/29 22:06:08 192.168.4.11:49507 accepted //140.207.215.230:443 [direct] 
2020/08/29 22:06:08 192.168.4.11:49509 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:08 192.168.4.11:49510 accepted //140.207.215.231:443 [direct] 
2020/08/29 22:06:08 192.168.4.11:49512 accepted http://140.207.214.241/api/v1/realtime [direct] 
2020/08/29 22:06:08 192.168.4.11:49511 accepted http://140.207.219.166/nyx/v1/history/merge/android [direct] 
2020/08/29 22:06:08 192.168.4.11:49513 accepted //t.appsflyer.com:443 [direct] 
2020/08/29 22:06:08 192.168.4.11:49514 accepted http://mwsa.ximalaya.com/business-vip-agreement-web/agreement/info [direct] 
2020/08/29 22:06:08 192.168.4.11:49515 accepted http://mobwsa.ximalaya.com/discovery-feed/isShowUserGiftPendant [direct] 
2020/08/29 22:06:08 192.168.4.11:49516 accepted http://mobile.tx.ximalaya.com/mobile-accident/accident/announcement/client/queryxxx[direct] 
2020/08/29 22:06:08 192.168.4.11:49517 accepted http://xdcs-collector.ximalaya.com/api/v1/realtime [direct] 
2020/08/29 22:06:08 192.168.4.11:49518 accepted http://xdcs-collector.ximalaya.com/nyx/v1/history/merge/android [direct] 
2020/08/29 22:06:09 192.168.4.11:49519 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49520 accepted http://211.95.37.209/nyx/v1/history/query/android?pageId=xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49521 accepted //140.207.219.167:443 [direct] 
2020/08/29 22:06:09 192.168.4.11:49522 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:09 192.168.4.11:49523 accepted http://mobile.ximalaya.com/nyx/v1/history/query/androidxxx[direct] 
2020/08/29 22:06:09 192.168.4.11:49524 accepted http://mobile.ximalaya.com/dog-portal/check/xxx[direct] 
2020/08/29 22:06:09 192.168.4.11:49525 accepted http://mobwsa.ximalaya.com/dog-portal/check/resource/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49526 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49527 accepted http://pns.ximalaya.com/pns-portal/pns/xiaomi/bind/v2 [direct] 
2020/08/29 22:06:09 192.168.4.11:49528 accepted http://mobile.ximalaya.com/dog-portal/check/gp/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49529 accepted http://mobile.ximalaya.com/dog-portal/check/xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49530 accepted http://14.204.139.117/group86/M09/xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49531 accepted http://mobwsa.ximalaya.com/dog-portal/checkOld/h5/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49532 accepted http://mobwsa.ximalaya.com/firework-portal/native?appId=1 [direct] 
2020/08/29 22:06:09 192.168.4.11:49533 accepted http://211.91.241.168/download/xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49534 accepted http://mobwsa.ximalaya.com/discovery-feed/v3/mix/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49535 accepted http://fdfs.xmcdn.com/group86/xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49536 accepted http://mobile.ximalaya.com/dog-portal/little/program/list [direct] 
2020/08/29 22:06:09 192.168.4.11:49537 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49538 accepted http://211.91.241.168/download/1.0.0/group3/xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49539 accepted http://xmc.ximalaya.com/xmlymain-login-web/login/xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49541 accepted http://140.207.215.234/location-web/location?latitude=0&longitude=0 [direct] 
2020/08/29 22:06:09 192.168.4.11:49543 accepted http://14.205.40.51/group86/M08xxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49542 accepted http://14.205.40.51/group82/M0Bxxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49544 accepted http://211.91.241.168/downloadxxx [direct] 
2020/08/29 22:06:09 192.168.4.11:49546 accepted http://fdfs.xmcdn.com/group82/M0Bxxx direct] 
2020/08/29 22:06:09 192.168.4.11:49545 accepted http://fdfs.xmcdn.com/group86/M08xxx  [direct] 
2020/08/29 22:06:09 192.168.4.11:49547 accepted //mi.gdt.qq.com:443 [direct] 
2020/08/29 22:06:09 192.168.4.11:49548 accepted http://location.ximalaya.com/location-web/location?latitude=0&longitude=0 [direct] 
2020/08/29 22:06:09 192.168.4.11:49549 accepted http://211.91.241.168/downloadxxx  [direct] 
2020/08/29 22:06:10 192.168.4.11:49550 accepted http://mwsa.ximalaya.com/jointvip/app/popBox?xxx  [direct] 
2020/08/29 22:06:10 192.168.4.11:49552 accepted http://mobwsa.ximalaya.com/mobile-user/user/age/xxx [direct] 
2020/08/29 22:06:10 192.168.4.11:49551 accepted //g.cn.miaozhen.com:443 [direct] 
2020/08/29 22:06:10 192.168.4.11:49553 accepted http://mobwsa.ximalaya.com/butler-portalxxx  [direct] 
2020/08/29 22:06:10 192.168.4.11:49554 accepted http://audiossl.xmcdn.com/group82/M0Bxxx  [direct] 
2020/08/29 22:06:10 192.168.4.11:49555 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:10 192.168.4.11:49558 accepted http://59.80.52.152/group67xxx [direct] 
2020/08/29 22:06:10 192.168.4.11:49557 accepted //211.95.37.216:443 [direct] 
2020/08/29 22:06:10 192.168.4.11:49559 accepted http://211.91.241.168/downloadxxx  [direct] 
2020/08/29 22:06:10 192.168.4.11:49560 accepted http://59.80.52.152/group79/xxx [direct] 
2020/08/29 22:06:10 192.168.4.11:49561 accepted http://imagev2.xmcdn.com/group67xxx [direct] 
2020/08/29 22:06:10 192.168.4.11:49563 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:10 192.168.4.11:49562 accepted http://imagev2.xmcdn.com/group79/xxxdirect] 
2020/08/29 22:06:10 192.168.4.11:49564 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:10 192.168.4.11:49565 accepted http://mobwsa.ximalaya.com/mobile/discovery/v2/location [direct] 
2020/08/29 22:06:10 192.168.4.11:49566 accepted http://audiossl.xmcdn.com/group82/xxx [direct] 
2020/08/29 22:06:10 192.168.4.11:49567 accepted http://mobwsa.ximalaya.com/messenger-web/v1/unreadxxx[direct] 
2020/08/29 22:06:10 192.168.4.11:49568 accepted http://mobwsa.ximalaya.com/subscribe/v2/subscribe/home/recommend [direct] 
2020/08/29 22:06:10 192.168.4.11:49569 accepted http://mobwsa.ximalaya.com/mobile-message-center/chatlist/infos/xxx [direct] 
2020/08/29 22:06:11 192.168.4.11:49570 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:12 192.168.4.11:49571 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:12 192.168.4.11:49572 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:12 192.168.4.11:49573 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:12 192.168.4.11:49574 accepted //61.172.194.184:443 [direct] 
2020/08/29 22:06:12 192.168.4.11:49575 accepted http://211.91.241.168/download/xxx[direct] 
2020/08/29 22:06:12 192.168.4.11:49576 accepted http://mobwsa.ximalaya.com/nyx/v1/history/query/xxx  [direct] 
2020/08/29 22:06:12 192.168.4.11:49577 accepted http://140.207.215.236/soundPatch/xxx[direct] 
2020/08/29 22:06:12 192.168.4.11:49578 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:12 192.168.4.11:49579 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:12 192.168.4.11:49580 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:12 192.168.4.11:49581 accepted http://audiossl.xmcdn.com/xxx [direct] 
2020/08/29 22:06:12 192.168.4.11:49582 accepted //140.207.215.241:443 [direct] 
2020/08/29 22:06:12 192.168.4.11:49583 accepted http://adse.ximalaya.com/soundPatch/xxx[direct] 
2020/08/29 22:06:12 192.168.4.11:49585 accepted http://211.91.241.168/download/xxx [direct] 
2020/08/29 22:06:12 192.168.4.11:49584 accepted //140.207.215.241:443 [direct] 
Neverends4 commented 4 years ago

顺便附单独抓log这个v2ray的配置:使用外置DAT走gfw,后面route垫底+outbound freedom置顶双保险,保证除了gfw都走直连。其实我还试过极端配置只有freedom outbound,结果没区别。

inbound:

{   
 "inbounds": [
        {
      "tag": "httproute",
      "port": 50080,
      "listen": "0.0.0.0",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "timeout":2,
        "allowTransparent": true
      }
    }
  ]
}

outbound

{
 "outbounds": [
      {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "vnext": null,
        "servers": null,
        "response": null
      },
      "streamSettings": null,
      "mux": null
    },
    {
      "tag": "proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "VPSIP",
            "port": 443,
            "users": [
              {
                "id": "UUID",
                "alterId": 8,
                "testsEnabled":"VMessAEAD",
                "security": "none"
              }
            ]
          }
        ],
        "servers": null,
        "response": null
      },
      "streamSettings": {
        "network": "tcp",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": ""
        },
        "tcpSettings": null,
        "kcpSettings": null,
        "wsSettings": null,
        "httpSettings": null,
        "quicSettings": null
      },
      "mux": {
        "enabled": true,
        "concurrency": 8
      }
    },
    {
            "protocol": "dns",
            "tag": "dns-out"
     },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "vnext": null,
        "servers": null,
        "response": {
          "type": "http"
        }
      },
      "streamSettings": null,
      "mux": null
    }
  ]
}

routing

{
"routing": {
    "domainStrategy": "IpIfNonMatch",
    "rules": [
        {
      "type": "field",
      "outboundTag": "proxy",
      "ip": [
        "1.1.1.1/32",
        "1.0.0.1/32",
        "8.8.8.8/32",
        "8.8.4.4/32"
      ]
    },

    {
     "type": "field",
     "outboundTag": "proxy",
     "domain": [
         "ext:h2y.dat:gfw",
         "geosite:google"
      ]
    },
{
     "type": "field",
     "network":"tcp,udp",
     "outboundTag": "direct"
 }
    ]
      }
}
kulongwangzhi85 commented 4 years ago

这种做透明代理而且使用旁路由做代理服务器的,我发现网上很多都使用iptables方法,跳转流量到v2ray端口。但是很多教程都漏了非常关键的一条规则就是回流问题。透明代理的客户端网关是旁路由,源地址是内网设备。当流量回来时,你真正的网关会直接发往内网设备。此时网络就异常了。在旁路由加上一条iptables规则是下,规则如下: iptables -t nat -A POSTROUTING -o eth0 -s 192.168.xxx.xxx/24 -j MASQUERADE -s 后源地址更换成李自己的网络地址,类似192.168.34.0/24

Neverends4 commented 4 years ago

这种做透明代理而且使用旁路由做代理服务器的,我发现网上很多都使用iptables方法,跳转流量到v2ray端口。但是很多教程都漏了非常关键的一条规则就是回流问题。透明代理的客户端网关是旁路由,源地址是内网设备。当流量回来时,你真正的网关会直接发往内网设备。此时网络就异常了。在旁路由加上一条iptables规则是下,规则如下: iptables -t nat -A POSTROUTING -o eth0 -s 192.168.xxx.xxx/24 -j MASQUERADE -s 后源地址更换成李自己的网络地址,类似192.168.34.0/24

我不是透明代理呀,只是简单的http代理。网关没有动,是我的主路由器。这样做就是因为不想研究iptables和BT分流,我只需要简单的外网访问。现在是v2ray的http入站有问题导致用了代理喜马拉雅异常,即使routing只设置直连也异常。用privoxy“过滤”一下就好了。

limaofu commented 4 years ago

可能是客户端app把流量发给代理时,未处理Http头部,没往里面加代理请求字段。 "allowTransparent": false时只转发代理请求流量,为true时转发所有发来的流量。 所以先配置为true看看

limaofu commented 4 years ago

①用这个试试 "inbounds": [ { "tag": "proxy", "port": 10809, "listen": "0.0.0.0", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "settings": { "timeout": 0, "auth": "noauth", "allowTransparent": true, "userLevel": 0 }, "streamSettings": null } ],

limaofu commented 4 years ago

②不行的话再试试这个: "inbounds": [ { "tag": "proxy", "port": 10809, "listen": "0.0.0.0", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "settings": { "timeout": 0, "accounts": [ { "user": "", "pass": "" } ], "allowTransparent": true, "userLevel": 0 }, "streamSettings": null } ],

Neverends4 commented 4 years ago

②不行的话再试试这个: "inbounds": [ { "tag": "proxy", "port": 10809, "listen": "0.0.0.0", "protocol": "http", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "settings": { "timeout": 0, "accounts": [ { "user": "", "pass": "" } ], "allowTransparent": true, "userLevel": 0 }, "streamSettings": null } ],

感谢回复,不过: A.我之前说了"allowTransparent" true/false都试过,没区别。 B.继续用上面单独开的v2ray套用你的配置: 安卓10手机,飞行模式只开wifi 阻断流量影响,设置http手动代理指向v2ray http inbound 配置1,浏览器可以访问外网,youtube app都正常,喜马拉雅提示网络错误,然而网易云音乐是正常的!

配置2,网络错误,任何网络都打不开,直接提示输入用户名密码……

使用上面我的那几个配置,结果都一样,所以我觉得"auth": "noauth",这句有没有没关系。 总结如下: 浏览器:内外网访问正常 youtube app:正常 网易云音乐VIP资源:正常 喜马拉雅VIP内容:提示网络错误

如果是国内外路由分流错误,网易云音乐是不会正常的,因为如果全局代理成国外IP,这个app也有版权限制,也无法打开资源,而且和喜马拉雅一样都是在线音频资源……只能推测喜马拉雅使用了特殊的URL请求/cookie方式,v2ray目前的http入站不支持,而privoxy支持(为了排错privoxy没有设置任何filter action,纯代理),所以用privoxy 设置http代理 链接到v2ray的socks inbound,喜马拉雅就正常了。

我觉得还是需要解决下,毕竟不使用代理时,喜马拉雅是正常的,你不能怪喜马拉雅http请求方式奇怪,而且从侧面也可以提高v2ray本身的代码质量。

limaofu commented 4 years ago

嗯,可能要抓个包看看喜马拉雅 的url是什么格式

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days