gost
gost copied to clipboard
如何转发端口?
嘿。 服务器 (nginx):
location /socketgost/ { server_tokens off; proxy_pass http://127.0.0.1:9121; proxy_http_version 1.1;
proxy_buffering off;
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_connect_timeout 10m;
proxy_send_timeout 10m;
proxy_read_timeout 90m;
send_timeout 10m;
}
} 需要通过WebSocket转发的UDP端口(2917)。 该端口正在监听应用程序。
客户: gost -F 'wss://<IP_SERVER>:443?path=/socketgost/' -L='rudp://:2917/:2917'
服务器: gost -D -L "ws://:9121?path=/socketgost/"
020/11/07 17:10:42 socks.go:1410: [socks5] udp-tun 127.0.0.1:51966 -> 0.0.0.0:2917 : listen udp 0.0.0.0:2917: bind: address already in use
与nginx已建立的gost(客户端)连接(如果使用免费端口)。 为什么要尝试绑定此端口(2917)? 当然,它正忙于另一个应用程序。 我究竟做错了什么?
服务器 gost -D -L "ws://:9121" 在客户端错误:websocket:错误的握手
请告诉我如何转发端口。
Feel free to use English to raise this issue. The author is very fluent in English.
Feel free to use English to raise this issue. The author is very fluent in English.
Thanks. Not sure if that makes any sense.
rudp uses the SOCKS5 BIND method, it informs the server of the address you(client) specified (2917) the server should bind.