jarell

为什么内网架设的 sniproxy 播放 youtube 有好多 这个 url https://xxxx.googlevideo.com/videoplayback 返回 404

  •  
  •   jarell · May 14, 2017 · 4177 views
    This topic created in 3467 days ago, the information mentioned may be changed or developed.
    把发生 404 的 url 复制到地址栏又能打开, 还能播放一点视频
    用 socks5 方式也能正常播放.
    使用公开的 sniproxy 也有同样的问题
    8 replies  •  2017-06-15 16:30:04 +08:00
    zbinlin
    zbinlin
    May 14, 2017❤️1
    1
    这个与 spdy/http2 有关,在 Firefox 下,我把 spdy/http2 关闭后,就可以正常播放了。
    jarell
    jarell
    OP
    May 14, 2017
    2
    @zbinlin 十分感谢。一直没想到 sni 和 http2 能扯上关系, 以为是不同层次的东西呢。
    PC 版 Chrome 加启动参数 --disable-http2 就能关闭 http2 了,android 版本的 chrome 怎么弄呢?
    jarell
    jarell
    OP
    May 14, 2017
    3
    @jarell android 版本设置 chrome://flags quic
    LGA1150
    LGA1150
    May 14, 2017❤️3
    4
    @jarell HTTP/2 支持单个 TCP 连接中发多个请求。在用 SNI Proxy 时,浏览器看到这些域名都是同一个 IP,就把发往这些域名的请求放在同一个连接中,而 SNI Proxy 只根据 TCP 连接进行一对一转发,导致请求最终被转发到了错误的服务器上,返回 403/404。
    lslqtz
    lslqtz
    May 14, 2017
    5
    我去发了一个 issue,但是不怎么会提。
    看看能不能得到回答 :-|
    wolonggl
    wolonggl
    Jun 3, 2017
    6
    变通方法:
    在 Openwrt/LEDE 路由器上 使用 dnsmasq 将 *.googlevideo.com 域名解析到一个随机的 IP 地址段 A,然后使用 iptables 上将地址段 A 的访问请求重定向到 SNI Proxy;
    jarell
    jarell
    OP
    Jun 5, 2017
    7
    @wolonggl 怎么配置 dnsmasq 对这样的域名返回随机 IP 呢
    bugmein3
    bugmein3
    Jun 15, 2017
    8
    @wolonggl ip 被 dnsmasq 解析成随机 ip 了,那 SNI Proxy 去哪取真实 ip。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2261 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 13:52 · PVG 21:52 · LAX 05:52 · JFK 08:52
    ♥ Do have faith in what you're doing.