fixed some problems

This commit is contained in:
KANIKIG
2020-10-15 15:24:10 +08:00
parent 801f5ed246
commit af94be292f
2 changed files with 9 additions and 8 deletions

View File

@@ -6,10 +6,10 @@
***
> 脚本简介
> > 适合懒人的超简单gost一键转发脚本:
> > `wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh`
> > 脚本由 @stsdustjc 制作,参考了 @风萧萧兮易水寒 大佬的一键脚本主要实现了systemd及gost配置文件对gost进行管理能够在不借助其他工具(如screen)的情况下实现多条转发规则同时生效。但功能性较弱,目前仅支持tcp+udp不加密转发, relay+tls加密转发, relay+tls解密对接转发。也算是能勉强保护一下裸奔的流量和搭建简单隧道的需求了。
> > `wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh`
> > 脚本由 KANIKIG 制作,参考了 @风萧萧兮易水寒 大佬的一键脚本主要实现了systemd及gost配置文件对gost进行管理能够在不借助其他工具(如screen)的情况下实现多条转发规则同时生效。支持tcp+udp不加密转发, relay+tls/ws/wss加密转发, relay+tls/ws/wss解密对接转发。
> > 项目地址及帮助文档:
> > https://github.com/KANIKIG/EasyGost
> > https://github.com/KANIKIG/Multi-EasyGost
***
## 本一键脚本适用人群
* 你只是想赶快用上gost进行流量转发不想学习gost的详细配置方法只想越简单越好
@@ -18,10 +18,10 @@
##### 如果你不符合上述条件请自行阅读gost的官方文档gost能够通过简单的命令实现非常多强大的功能但本脚本并未加入那些功能
##### 如果你是萌新有很多与IP/端口/转发有关的概念都还没弄清楚,请跟随本文的「完整食用教程」一步步进行设置,最终通过一键脚本实现转发
***
***
## 完整食用教程
* 启动脚本: 在已经运行过如下一键脚本的情况下
`wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh`
`wget --no-check-certificate -O gost.sh https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.sh && chmod +x gost.sh && ./gost.sh`
* 再次运行本脚本只需要输入`./gost.sh`回车即可
***
@@ -108,3 +108,4 @@
3. 在[C]主机上选择协议[3]的,需要比较注意,在[C]主机上选择协议[3]意味着你[B]主机选的是协议[2],那么[C]主机在用此脚本时第一次填写的本地端口(难点2),应该与[B]主机上配置时填写的目标端口相一致(难点4.2),一般是`443`,而第二次填写的端口应与[C]主机上具体服务所监听的端口相一致,按如上示例即为`22332`
### 到此一切设置完毕尽情享受GOST为你带来的便捷吧 :)

View File

@@ -105,8 +105,8 @@ function Install_ct()
`mv gost-linux-"$bit"-"$ct_new_ver" gost`
`mv gost /usr/bin/gost`
`chmod -R 777 /usr/bin/gost`
`wget --no-check-certificate https://raw.githubusercontent.com/KANIKIG/EasyGost/master/gost.service && chmod -R 777 gost.service && mv gost.service /usr/lib/systemd/system`
`mkdir /etc/gost && wget --no-check-certificate https://raw.githubusercontent.com/KANIKIG/EasyGost/master/config.json && mv config.json /etc/gost && chmod -R 777 /etc/gost`
`wget --no-check-certificate https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/gost.service && chmod -R 777 gost.service && mv gost.service /usr/lib/systemd/system`
`mkdir /etc/gost && wget --no-check-certificate https://raw.githubusercontent.com/KANIKIG/Multi-EasyGost/master/config.json && mv config.json /etc/gost && chmod -R 777 /etc/gost`
`systemctl enable gost && systemctl restart gost`
echo "------------------------------"
if test -a /usr/bin/gost -a /usr/lib/systemctl/gost.service -a /etc/gost/config.json;then
@@ -185,7 +185,7 @@ function read_d_ip()
echo -e "------------------------------------------------------------------"
echo -e "请问你要将本机从${flag_b}接收到的流量转发向哪个IP或域名?"
echo -e "注: IP既可以是[远程机器/当前机器]的公网IP, 也可是以本机本地回环IP(即127.0.0.1)"
echo -e " 具体IP地址的填写, 取决于接收该流量的服务正在监听的IP(详见: https://github.com/KANIKIG/EasyGost)"
echo -e " 具体IP地址的填写, 取决于接收该流量的服务正在监听的IP(详见: https://github.com/KANIKIG/Multi-EasyGost)"
read -p "请输入: " flag_c
}
function read_d_port()