V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
AntonChen
V2EX  ›  问与答

SNI Proxy 超时尝试多次后才成功,有没有遇到同样问题的?

  •  
  •   AntonChen · 2017-09-17 13:55:11 +08:00 · 2481 次点击
    这是一个创建于 2384 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我用 SNI Proxy 代理 Github 全站,不知道为什么过段时间就连不上,需要尝试多次才能连接,使用 telnet 连接端口也是这样。

    但是浏览器访问完全没问题

    wget 执行结果,尝试 8 次才成功,ping 200ms 左右。

    --2017-09-17 13:31:43--  (try: 7)  https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gz
    Connecting to github.com (github.com)|0.0.0.0|:443... failed: Connection timed out.
    Retrying.
    
    --2017-09-17 13:31:53--  (try: 8)  https://github.com/typecho/typecho/releases/download/v1.0-14.10.10-release/1.0.14.10.10.-release.tar.gz
    Connecting to github.com (github.com)|0.0.0.0|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/11467667/1a550a0e-5105-11e4-85ca-664dbf315ccc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170917%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170917T053154Z&X-Amz-Expires=300&X-Amz-Signature=11ce79015455a653a1f6ef31ae39085eda008e43a6e06444e53bd638ddf6e574&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3D1.0.14.10.10.-release.tar.gz&response-content-type=application%2Foctet-stream [following]
    

    配置文件

    user nobody
    
    resolver {
        nameserver 8.8.8.8
        mode ipv4_only
        #mode ipv4_first
    }
    
    access_log {
        filename /tmp/sniproxy-access.log
    }
    
    error_log {
        filename /tmp/sniproxy-error.log
    }
    
    listen 0.0.0.0:443 {
      proto tls
      table https_hosts
    }
    
    table https_hosts {
        # Github
        (.*.|)github.com$ *
        (.*.|)githubusercontent.com$ *
        github(.*).s3.amazonaws.com$ *
    }
    

    连接超时时无日志,好像是根本没连上端口,但端口确实在监听。

    1 条回复    2017-09-17 23:30:57 +08:00
    pagxir
        1
    pagxir  
       2017-09-17 23:30:57 +08:00
    全是 0.0.0.0 的 IP 是什么鬼?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3070 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:35 · PVG 22:35 · LAX 07:35 · JFK 10:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.