项目地址
https://github.com/ginuerzh/gost
命令行使用代理
# 设置代理 netsh winhttp set proxy 192.168.10.20:7890 netsh winhttp set proxy proxy-server="http=192.168.10.20:7890;https=192.168.10.20:7890" bypass-list="" netsh winsock set proxy proxy-server="http=192.168.10.20:7890;https=192.168.10.20:7890" bypass-list="" # 取消代理 netsh winhttp reset proxy # 查看代理 netsh winhttp show proxy set HTTP_PROXY=http://192.168.10.20:7890 set HTTPS_PROXY=http://192.168.10.20:7890
启动容器代理
docker run -tid --name gost1 -p 8080:8080 --rm ginuerzh/gost "-L=:8080"
带密码的 代理
gost -L=admin:123456@localhost:8080 docker run -tid --name gost1 -p 8080:8080 --rm ginuerzh/gost "-L=admin:123456@localhost:8080" docker run -tid --name gost1 -p 8080:8080 --rm ginuerzh/gost "-L=admin:123456@[::]:8080" pwd='brysjhhrhL356126155165352237656123165615' # ginuerzh/gost gost_img_url='registry.cn-hangzhou.aliyuncs.com/mkmk/all:gost' docker rm -f gost1 docker run -tid --name gost1 --net=host --restart=always ${gost_img_url} "-L=admin:${pwd}@[::]:58080"
香港服务器
ssh root@47.242.75.166 47.242.75.166 root lmk@19980312! ssh-copy-id -i ~/.ssh/id_rsa.pub root@47.242.75.166 docker run -tid --name gost1 -p 19999:19999 --rm ginuerzh/gost "-L=kiki:9c37cc6f2db640e4bcc61668f5b507be@[::]:19999" 9c37cc6f2db640e4bcc61668f5b507be # 自动重启 带密码 docker run -tid --name gost1 -p 19999:19999 --restart=always ginuerzh/gost "-L=kiki:9c37cc6f2db640e4bcc61668f5b507be@[::]:19999" # 免密 docker run -tid --name gost1 -p 19999:19999 --restart=always ginuerzh/gost "-L=[::]:19999" docker stop gost1 && docker rm gost1 9c37cc6f2db640e4bcc61668f5b507be
虚拟环境
cat > ~/dir_proxy.sh <<"EOF" #!/bin/bash source ~/env_py3/bin/activate cd /amydata nohup python -m http.server -b :: 80 2>&1 > dir_proxy.log & EOF chmod +x dir_proxy.sh
docker tag 1907bc8679f3 registry.cn-hongkong.aliyuncs.com/mkmk/gost:20210311
[root@izips92kqeqhgjz ~]# docker push registry.cn-hongkong.aliyuncs.com/mkmk/gost:20210311
“-L=[::]:19999”
eci 实现 访问 github 学习网站
阿里云 eci 根据 gost 香港可用域 镜像,绑定 香港 精品 ip 网络 即可 实现, 访问 github
欢迎大家一起交流呀
qq群:3638803451
vx:wxid_sgdelhiwombj12
原文链接:https://www.cnblogs.com/ltgybyb/p/16884749.html
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/33095