V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhengji
V2EX  ›  分享发现

分享一个 Go 写的 TcpProxy

  •  1
     
  •   zhengji · 2015-08-28 10:59:55 +08:00 · 2442 次点击
    这是一个创建于 3165 天前的主题,其中的信息可能已经有所发展或是发生改变。

    GitHub

    goTcpProxy

    A Tcp Proxy Server Written By Go

    编译

    cd $GOPATH;
    git clone http://github.com/zheng-ji/goTcpProxy;
    make
    

    使用范例

    Usage of ./goTcpProxy:
        -c=10000: max connections in the queue wait for servers.
        -dest="172.16.1.250:3306": where proxy server forward requests to.
        -n=25: max active connection.
        -src="127.0.0.1:8999": proxy server's host.
        -ttl=20: timeout of read and write
    ./goTcpProxy -src="127.0.0.1:8999" -dest="172.16.1.250:3306"
    
    49
        1
    49  
       2015-08-28 11:19:54 +08:00 via Android
    楼主祝你好运!
    先 star 为敬, ss 停步后,百花齐放的时代到了吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.