官网及下载
https://github.com/ginuerzh/gost
跳板机
- 使用10.80.8.237
- 复用Nginx的8080端口
服务端Gost
1
| ./gost -L "ws://172.17.0.1:31314?path=/gost"
|
服务端Nginx转发配置
1 2 3 4 5 6 7 8 9 10
| location /ray { proxy_redirect off; proxy_pass http://172.17.0.1:31313; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
|
本机DockerEC
1
| docker run --name ecweifang --device /dev/net/tun --cap-add NET_ADMIN -itd -p 127.0.0.1:7011:1080 -e EC_VER=7.6.3 -e CLI_OPTS="-d https://xx.xx.xx.xx -u username -p password" hagb/docker-easyconnect:cli
|
本机Gost
1
| ./gost -L=:7013 -F="ws://10.80.8.237:8080?path=/gost"
|
本机Proxifier配置
- gost进程 + 10.80.8.237网段 –> 127.0.0.1:7011
- 任意进程 + 10.80.8.*网段 –> 127.0.0.1:7013