[GH-ISSUE #127] 如何把客户IP地址转发给frp后面的网站? #71

Closed
opened 2026-05-05 11:42:17 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @mbj2014 on GitHub (Oct 8, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/127

因为是代理机制,所以有没有什么办法可以让后台程序可以拿到客户端IP?

Originally created by @mbj2014 on GitHub (Oct 8, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/127 因为是代理机制,所以有没有什么办法可以让后台程序可以拿到客户端IP?
gitea-mirror 2026-05-05 11:42:17 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@fatedier commented on GitHub (Oct 10, 2016):

目前还不能,不过 http 的话可以考虑通过 header 字段的 X-Forwarded-For 和 x-real-ip 来传递这些信息。

<!-- gh-comment-id:252585430 --> @fatedier commented on GitHub (Oct 10, 2016): 目前还不能,不过 http 的话可以考虑通过 header 字段的 X-Forwarded-For 和 x-real-ip 来传递这些信息。
Author
Owner

@yydcool commented on GitHub (Feb 16, 2017):

越来越像Nginx了

<!-- gh-comment-id:280489184 --> @yydcool commented on GitHub (Feb 16, 2017): 越来越像Nginx了
Author
Owner

@fatedier commented on GitHub (Feb 17, 2017):

应该是越来越像一个反向代理了。

<!-- gh-comment-id:280529317 --> @fatedier commented on GitHub (Feb 17, 2017): 应该是越来越像一个反向代理了。
Author
Owner

@xhinker commented on GitHub (Mar 13, 2017):

@fatedier http 拿不到ip 地址,那么tcp 呢? response 是怎么知道 返回给那个ip 地址的呢

<!-- gh-comment-id:286030978 --> @xhinker commented on GitHub (Mar 13, 2017): @fatedier http 拿不到ip 地址,那么tcp 呢? response 是怎么知道 返回给那个ip 地址的呢
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: github-starred/frp#71
No description provided.