本脚本帮助你快速构建Gost安全隧道,保证数据安全有效传输。
-
目前支持的隧道传输协议:tls,mtls,ws,mws,wss,mwss,kcp
-
支持以上模式附加relay
-
支持udp over tcp
-
加入iptables中转支持(感谢arloor)
本脚本已在CentOS7测试通过,当然其他系统也都可以用。
使用脚本之前需要有git
,没有的话先安装
yum -y install git
apt-get install git
然后输入以下命令一键下载、赋权、运行
git clone https://github.com/HelloWorld-create/GostScript.git && chmod -R 777 ./GostScript && cd ./GostScript && bash gost.sh
运行之后按照引导来即可。
客户端运行在中转机器(见图解),服务端运行在最终服务提供机。
本脚本构建的隧道可以用以下表示:
隧道在这里的作用就是,让最左侧的终端都能安全的接入最右侧的最终服务。