Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
ab6e8574
Commit
ab6e8574
authored
Oct 25, 2015
by
ginuerzh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README
parent
398ca524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
README.md
README.md
+75
-0
No files found.
README.md
0 → 100644
View file @
ab6e8574
gost 2.0 - GO Simple Tunnel
====
### GO语言实现的安全隧道
#### 特性
1.
可同时监听多端口。
2.
可设置多转发代理。
3.
兼容标准http/socks5代理协议。
4.
socks5代理支持tls协商加密。
4.
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可以自己处理请求,或者将请求转发给任意一个或多个代理节点。
#### 使用方法
##### 不设置转发代理
<img
src=
"https://ginuerzh.github.io/images/gost_01.png"
/>
*
作为标准http/socks5代理
```
bash
gost
-L
=
:8080
```
*
设置代理认证信息
```
bash
gost
-L
=
admin:123456@localhost:8080
```
*
多端口监听
```
bash
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
##### 设置转发代理
<img
src=
"https://ginuerzh.github.io/images/gost_02.png"
/>
```
bash
gost
-L
=
:8080
-F
=
192.168.1.1:8081
```
*
转发代理认证
```
bash
gost
-L
=
:8080
-F
=
admin:123456@192.168.1.1:8081
```
##### 设置多个转发代理(转发链)
<img
src=
"https://ginuerzh.github.io/images/gost_03.png"
/>
```
bash
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)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment