BlueXIII's Blog

热爱技术,持续学习

0%

Gost隧道部署笔记

官网

https://github.com/ginuerzh/gost

WS端口复用

服务端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;
}

本机Gost

1
./gost -L=:7013 -F="ws://10.80.8.237:8080?path=/gost"