微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

gotunnel TCP连接隧道

程序名称:gotunnel

授权协议: 未知

操作系统: 跨平台

开发语言: Google Go

gotunnel 介绍

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

gotunnel 官网

https://github.com/xjdrew/gotunnel

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐