gotunnel - TCP连接隧道


未知
跨平台
Google Go

软件简介

gotunnel在客户端和服务器之间建立一条tcp连接作为隧道,客户端和服务器把所有应用连接上的请求回应打包成字节流加密后通过隧道传输到对端,并把字节流还原到相应的连接上去,使隧道对应用层透明。

通过使用gotunnel,可以减少客户端和服务器之间频繁的连接建立和断开,提升应用的效率,尤其是他们之间隔着防火墙的时候。

使用方法:

$ source env.sh
$ go build github.com/xjdrew/gotunnel
$ go build src/github.com/xjdrew/gotunnel/tests/sender.go
$ go build src/github.com/xjdrew/gotunnel/tests/receiver.go

# launch tunnel server
$ ./gotunnel -log=10 src/github.com/xjdrew/gotunnel/tests/test.conf

# launch tunnel client
$ ./gotunnel -log=10 -listen=":8003" -server="127.0.0.1:8001"

# launch receiver
$ ./receiver

# lauch sender
$ ./sender -remote=127.0.0.1:8003