You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ginuerzh ab6e857443 add README 11 years ago
.gitignore update websocket 11 years ago
README.md add README 11 years ago
conn.go add bind forward 11 years ago
http.go add bind forward 11 years ago
main.go fix compiling errors 11 years ago
socks.go fix compiling errors 11 years ago
udp.go fix compiling errors 11 years ago
util.go rm pem files 11 years ago
ws.go gost v2.0 init 11 years ago

README.md

gost 2.0 - GO Simple Tunnel

GO语言实现的安全隧道

特性

  1. 可同时监听多端口。
  2. 可设置多转发代理。
  3. 兼容标准http/socks5代理协议。
  4. socks5代理支持tls协商加密。
  5. Tunnel UDP over TCP。
  6. 兼容shadowsocks协议。

二进制文件下载:https://github.com/ginuerzh/gost/releases

Google讨论组: https://groups.google.com/d/forum/go-gost

在gost 2.0中,没有了客户端-服务器的概念,gost与其他代理服务都被看作是代理节点(proxy node),gost可以自己处理请求,或者将请求转发给任意一个或多个代理节点。

使用方法

不设置转发代理

  • 作为标准http/socks5代理
gost -L=:8080
  • 设置代理认证信息
gost -L=admin:123456@localhost:8080
  • 多端口监听
gost -L=http://localhost:8080 -L=socks://localhost:8081

-L参数格式:[scheme://][user:pass@host]:port

scheme分为两部分: protocol - 代理协议类型(http, socks5, shadowsocks), transport - 数据传输方式(tcp, websocket, tls)。

http - 作为http代理: http://:8080

http+tls - 作为http代理,使用tls传输数据: http+tls://:8080

socks - 作为socks5代理: socks://:8080

socks+ws -作为socks5代理,使用websocket传输数据: socks+ws://:8080

设置转发代理

gost -L=:8080 -F=192.168.1.1:8081
  • 转发代理认证
gost -L=:8080 -F=admin:[email protected]:8081
设置多个转发代理(转发链)

gost -L=:8080 -F=http://192.168.1.1:8081 -F socks://192.168.1.2:8082 -F=··· -F=a.b.c.d:NNNN

gost通过转发链按照-F设置顺序将请求最终转发给a.b.c.d:NNNN处理,每一个转发代理可以是任意一种类型的代理(http/socks5)