V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zhengji

分享一个 Go 写的 TcpProxy

  •  1
     
  •   zhengji · Aug 28, 2015 · 3089 views
    This topic created in 3909 days ago, the information mentioned may be changed or developed.

    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  
       Aug 28, 2015 via Android
    楼主祝你好运!
    先 star 为敬, ss 停步后,百花齐放的时代到了吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:49 · PVG 00:49 · LAX 09:49 · JFK 12:49
    ♥ Do have faith in what you're doing.