什么是Gost?
Gost是一个由GO语言实现的安全隧道
安装
打开终端分别输入:
wget <https://github.com/ginuerzh/gost/releases/download/v2.8.1/gost_2.8.1_linux_amd64.tar.gz>
tar -zxvf gost_2.8.1_linux_amd64.tar.gz
mv gost_2.8.1_linux_amd64/gost /usr/bin/gost
chmod +x /usr/bin/gost
使用
开启一个HTTP代理服务
命令:
gost -L http://:8080
配置:
services:
- name: service-0
addr: ":8080"
handler:
type: http
listener:
type: tcp
上述仅打开了HTTP
开启多个代理服务
命令:
gost -L http://:8080 -L socks5://:1080
配置:
services:
- name: service-0
addr: ":8080"
handler:
type: http
chain: chain-0
listener:
type: tcp
chains:
- name: chain-0
hops:
- name: hop-0
nodes:
- name: node-0
addr: 192.168.1.1:8080
connector:
type: http
dialer:
type: tcp
上述分别打开了HTTP和Socks5 Socks5属于明文代理,不要用于科学上网,否则会被阻断端口,可用于正常的跳板使用
尾声
更多详情请看官方文档 https://gost.run/getting-started/quick-start/ 请使用在正当途径!