aarwwefdds
V2EX  ›  问与答

有什么透明代理可以检测到 tcp reset 以后自动使用某种代理重试连接

  •  
  •   aarwwefdds · Nov 10, 2014 · 4774 views
    This topic created in 4221 days ago, the information mentioned may be changed or developed.
    14 replies    2014-11-11 10:34:31 +08:00
    sdysj
        1
    sdysj  
       Nov 10, 2014   ❤️ 1
    拿 rst 来当逻辑条件的都不会靠谱的,tcp 上 rst 包多了海了去。
    egen
        2
    egen  
       Nov 10, 2014   ❤️ 1
    COW:辅助自动翻墙的 HTTP 代理服务器

    /t/60208
    aarwwefdds
        3
    aarwwefdds  
    OP
       Nov 10, 2014
    @sdysj 你说的没错 是不靠谱,但是如果限定一下,HTTP+数秒内RESET。这就很能缩短误判率了
    aarwwefdds
        4
    aarwwefdds  
    OP
       Nov 10, 2014
    @egen 这东西支持透明代理么
    Lentin
        5
    Lentin  
       Nov 10, 2014
    @aarwwefdds cow就是透明代理
    egen
        6
    egen  
       Nov 10, 2014
    @aarwwefdds cow应该不算透明代理,cow支持检测 tcp reset 后自动使用代理重试连接,但是客户端还是需要先配置代理走 cow 的代理监听端口
    LazyZhu
        7
    LazyZhu  
       Nov 10, 2014
    目前没有理想的自动检测方法,cow也得有稳定的网络环境,不然蛋疼死。。。
    aarwwefdds
        8
    aarwwefdds  
    OP
       Nov 10, 2014
    @LazyZhu cow不支持透明代理的话就没办法直接用iptables跳转端口,看了下似乎redsocks能做转换,这货有OpenWRT下的版本么。。
    aarwwefdds
        10
    aarwwefdds  
    OP
       Nov 11, 2014
    @LazyZhu cow用了下是不错,就是不能单独检测Rst。我不希望检测连接超时,因为已经有路由表可以路由被FW的IP。就是关键字或者部分URL的rst很蛋疼
    egen
        11
    egen  
       Nov 11, 2014
    @aarwwefdds 如果不想要超时的检测可以通过配置单独关闭,参考:
    https://github.com/cyfdecyf/cow/blob/master/doc/sample-config/rc
    aarwwefdds
        12
    aarwwefdds  
    OP
       Nov 11, 2014
    @egen 把那两个值设得特别高些还是。。?
    aarwwefdds
        13
    aarwwefdds  
    OP
       Nov 11, 2014
    @LazyZhu redsocks有拥塞问题,链接数量比较大的时候会卡住 重启redsocks恢复正常。privoxy用的是蛋疼的socket模型更加不支持高连接数。还有啥别的可以做转换的么?
    aarwwefdds
        14
    aarwwefdds  
    OP
       Nov 11, 2014
    打错。。是select模型...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3212 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 13:58 · PVG 21:58 · LAX 06:58 · JFK 09:58
    ♥ Do have faith in what you're doing.