脚本很简单,下载最新版GOST并配置为开机启动的服务,应该支持较新的debian,centos,ubuntu吧,可以快速的帮助我们构建自己的隧道,一些使用范例:

SS隧道

bash <(curl -s https://raw.githubusercontent.com/mixool/script/debian-9/gost.sh)

SS+kcp隧道

bash <(curl -s https://raw.githubusercontent.com/mixool/script/debian-9/gost.sh) -L=ss+kcp://AEAD_CHACHA20_POLY1305:[email protected]:8338

Websocket

常用于搭配Cloudflare使用

bash <(curl -s https://raw.githubusercontent.com/mixool/script/debian-9/gost.sh) -L=mws://:80

加密隧道端口转发

常用于国内中转国外使用,其中-F的隧道可选SS,https等

bash <(curl -s https://raw.githubusercontent.com/mixool/script/debian-9/gost.sh) -L=tcp://:2222/192.168.1.1:22 -F=https://1.1.1.1:443

DNS代理服务

传入参数加''转义

bash <(curl -s https://raw.githubusercontent.com/mixool/script/debian-9/gost.sh) '-L="dns://:1053?mode=udp&dns=8.8.8.8,1.1.1.1:53/tcp,1.1.1.1:853/tls,https://1.0.0.1/dns-query"'

重复执行脚本即可重新安装GOST最新版,并重新配置GOST!

卸载

systemctl stop gost && systemctl disable gost
rm -rf /etc/systemd/system/gost.service /usr/bin/gost
Last modification:July 10th, 2020 at 12:41 pm
如果觉得我的文章对你有用,请随意赞赏