[GH-ISSUE #2663] 这个可以出一个 具体使用示例吗? #2122

Closed
opened 2026-05-05 13:21:50 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @lingchenma on GitHub (Nov 18, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2663

Describe the feature request

proxy_protocol_version
关于这个使用

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @lingchenma on GitHub (Nov 18, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2663 ### Describe the feature request proxy_protocol_version 关于这个使用 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
gitea-mirror 2026-05-05 13:21:50 -06:00
Author
Owner

@lingchenma commented on GitHub (Nov 18, 2021):

我用这个,之后就无法连接上了

<!-- gh-comment-id:972525600 --> @lingchenma commented on GitHub (Nov 18, 2021): 我用这个,之后就无法连接上了
Author
Owner

@xqzr commented on GitHub (Nov 20, 2021):

需要本地的服务配合
https://gofrp.org/docs/features/common/realip/#proxy-protocol

<!-- gh-comment-id:974703334 --> @xqzr commented on GitHub (Nov 20, 2021): 需要本地的服务配合 https://gofrp.org/docs/features/common/realip/#proxy-protocol
Author
Owner

@lingchenma commented on GitHub (Nov 21, 2021):

我本地服务,是这样配置的,配置完就 无法使用这个服务了,就链接不上了

<!-- gh-comment-id:974741454 --> @lingchenma commented on GitHub (Nov 21, 2021): 我本地服务,是这样配置的,配置完就 无法使用这个服务了,就链接不上了
Author
Owner

@xqzr commented on GitHub (Nov 21, 2021):

我本地服务,是这样配置的,配置完就 无法使用这个服务了,就链接不上了

“这样”是怎么样的呢?

<!-- gh-comment-id:974783750 --> @xqzr commented on GitHub (Nov 21, 2021): > 我本地服务,是这样配置的,配置完就 无法使用这个服务了,就链接不上了 “这样”是怎么样的呢?
Author
Owner

@lingchenma commented on GitHub (Nov 21, 2021):

[ssh]
type = tcp
local_port = 22
remote_port = 6000

目前支持 v1 和 v2 两个版本的 proxy protocol 协议。

proxy_protocol_version = v2

我是这样配置的

<!-- gh-comment-id:974793157 --> @lingchenma commented on GitHub (Nov 21, 2021): [ssh] type = tcp local_port = 22 remote_port = 6000 # 目前支持 v1 和 v2 两个版本的 proxy protocol 协议。 proxy_protocol_version = v2 我是这样配置的
Author
Owner

@lingchenma commented on GitHub (Nov 21, 2021):

这个功能只支持HTTP吗?ssh支持显示真实IP吗?

<!-- gh-comment-id:974793258 --> @lingchenma commented on GitHub (Nov 21, 2021): 这个功能只支持HTTP吗?ssh支持显示真实IP吗?
Author
Owner

@github-actions[bot] commented on GitHub (Dec 22, 2021):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:999188921 --> @github-actions[bot] commented on GitHub (Dec 22, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@peaceanddemocracy commented on GitHub (May 30, 2022):

需要本地的服务配合 https://gofrp.org/docs/features/common/realip/#proxy-protocol

我的情况和楼上一样,开启这个后直接404报错了无法访问web

<!-- gh-comment-id:1141098908 --> @peaceanddemocracy commented on GitHub (May 30, 2022): > 需要本地的服务配合 https://gofrp.org/docs/features/common/realip/#proxy-protocol 我的情况和楼上一样,开启这个后直接404报错了无法访问web
Author
Owner

@lingchenma commented on GitHub (May 30, 2022):

你好!主人有事!主人收到信息会第一时间回复你的

<!-- gh-comment-id:1141099237 --> @lingchenma commented on GitHub (May 30, 2022): 你好!主人有事!主人收到信息会第一时间回复你的
Author
Owner

@peaceanddemocracy commented on GitHub (Jun 1, 2022):

主人回来了么

<!-- gh-comment-id:1143375106 --> @peaceanddemocracy commented on GitHub (Jun 1, 2022): 主人回来了么
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#2122
No description provided.