lsylsy2
V2EX  ›  问与答

有 SPDY 正向代理的成熟方案么?

  •  
  •   lsylsy2 · Dec 4, 2014 · 4924 views
    This topic created in 4202 days ago, the information mentioned may be changed or developed.
    RT,目前看到支持SPDY的有两个方案:
    1、shrpx+squid等普通代理;
    2、TrafficServer新版支持SPDY,编译依赖spdylay(shrpx和spdylay是一个项目的东西)

    有人测试过稳定性如何么?shrpx套一层总感觉有点不靠谱……
    9 replies    2015-02-07 21:25:52 +08:00
    GuangXiN
        1
    GuangXiN  
       Dec 4, 2014
    shrpx+polipo已经稳定工作超过三个月,上次重启是因为升级了openssl。
    lsylsy2
        2
    lsylsy2  
    OP
       Dec 4, 2014
    @GuangXiN 对了,shrpx的原理就是一层“HTTPS转HTTP”的代理么?和polipo是用TCP连接么
    这样的话,ACL什么的不太好做( ̄▽ ̄")
    GuangXiN
        3
    GuangXiN  
       Dec 4, 2014
    @lsylsy2 自己用不需要acl呀,要acl上squid嘛
    lsylsy2
        4
    lsylsy2  
    OP
       Dec 5, 2014
    @GuangXiN 我的意思是,如果shrpx和squid之间是用tcp链接的话,squid只能看到连接来自127.0.0.1,就没法做ACL了……
    GuangXiN
        5
    GuangXiN  
       Dec 6, 2014 via Android
    我以前做squid的acl都是用帐号密码的,又不是内网使用,基于IP不太靠谱。
    GuangXiN
        6
    GuangXiN  
       Dec 6, 2014 via Android
    @lsylsy2 squid3支持根据X-Forwarded-For 来设置acl http://www.squid-cache.org/Doc/config/follow_x_forwarded_for/
    lsylsy2
        7
    lsylsy2  
    OP
       Dec 6, 2014
    @GuangXiN X-Forwarded-For很容易伪造,我就是限制公网……账号密码我不好做一人一张好
    flynaj
        8
    flynaj  
       Dec 6, 2014 via Android
    用node.js 写的spdyproxy
    zjgood
        9
    zjgood  
       Feb 7, 2015
    @flynaj 但是那货好像很久没更新了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2865 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 08:08 · PVG 16:08 · LAX 01:08 · JFK 04:08
    ♥ Do have faith in what you're doing.