[GH-ISSUE #165] 客户端到服务器之间加了一层 GoProxy 端口转发,Nginx 怎么获取用户的真实 IP 地址? #97

Closed
opened 2026-02-27 23:15:26 +03:00 by kerem · 1 comment
Owner

Originally created by @designinlife on GitHub (Oct 27, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/165

GoProxy 版本:5.2

使用的 TCP 端口映射转发请求。
./goproxy tcp -p 0.0.0.0:80 -T tcp -P 真实服务器IP地址:80 --forever --daemon

我的用法:客户端浏览器 -> GoProxy 服务端口 -> 真实 WEB 服务器 (Nginx)

目前的问题是:Nginx 只能拿到 GoProxy 所在的服务器IP地址 取不到客户端的真实IP地址。请教解决方法!

Originally created by @designinlife on GitHub (Oct 27, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/165 GoProxy 版本:5.2 使用的 TCP 端口映射转发请求。 ./goproxy tcp -p 0.0.0.0:80 -T tcp -P 真实服务器IP地址:80 --forever --daemon 我的用法:客户端浏览器 -> GoProxy 服务端口 -> 真实 WEB 服务器 (Nginx) 目前的问题是:Nginx 只能拿到 GoProxy 所在的服务器IP地址 取不到客户端的真实IP地址。请教解决方法!
kerem closed this issue 2026-02-27 23:15:26 +03:00
Author
Owner

@snail007 commented on GitHub (Oct 28, 2018):

不支持。只能gp前面再加一个Nginx

<!-- gh-comment-id:433675068 --> @snail007 commented on GitHub (Oct 28, 2018): 不支持。只能gp前面再加一个Nginx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#97
No description provided.