[GH-ISSUE #2771] http跳转的p2p模式 #2215

Closed
opened 2026-05-05 13:25:36 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @konijiji on GitHub (Jan 22, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2771

Describe the feature request

希望增加一个http跳转的p2p模式,就是把xxx.com定向到服务器ip,访问者访问http://xxx.com,服务器返回301跳转到http://路由器ip:port,这样访问者不用安装frp也可以p2p传输

比如客户端有一个web服务是192.168.1.1:80,frp经过运营商nat后是1.1.1.1:12345,在服务器的frp能自动更新客户端的ip和端口信息。访问者直接访问http://xxx.com,xxx.com的ip指向服务器,服务器的frp返回301跳转到1.1.1.1:12345,这样访问者就可以直接访问到web服务,访问者也不用安装frp程序就可以直连web,这对一些web文件服务很有用

大多数运营商nat都是full clone nat。。。。

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 @konijiji on GitHub (Jan 22, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2771 ### Describe the feature request 希望增加一个http跳转的p2p模式,就是把xxx.com定向到服务器ip,访问者访问http://xxx.com,服务器返回301跳转到http://路由器ip:port,这样访问者不用安装frp也可以p2p传输。 比如客户端有一个web服务是192.168.1.1:80,frp经过运营商nat后是1.1.1.1:12345,在服务器的frp能自动更新客户端的ip和端口信息。访问者直接访问http://xxx.com,xxx.com的ip指向服务器,服务器的frp返回301跳转到1.1.1.1:12345,这样访问者就可以直接访问到web服务,访问者也不用安装frp程序就可以直连web,这对一些web文件服务很有用 大多数运营商nat都是full clone nat。。。。 ### 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
gitea-mirror 2026-05-05 13:25:36 -06:00
Author
Owner

@fatedier commented on GitHub (Jan 23, 2022):

建议可以使用 DDNS。

<!-- gh-comment-id:1019507295 --> @fatedier commented on GitHub (Jan 23, 2022): 建议可以使用 DDNS。
Author
Owner

@konijiji commented on GitHub (Jan 24, 2022):

建议可以使用 DDNS。

和ddns不一样,我的意思是客户端frp将孔打好,然后服务端frp实现301跳转到这个孔。
比如客户端有一个web服务是192.168.1.1:80,frp经过运营商nat后是1.1.1.1:12345,在服务器的frp能自动更新客户端的ip和端口信息。访问者直接访问http://xxx.com,xxx.com的ip指向服务器,服务器的frp返回301跳转到1.1.1.1:12345,这样访问者就可以直接访问到web服务,访问者也不用安装frp程序就可以直连web,这对一些web文件服务很有用

<!-- gh-comment-id:1019761447 --> @konijiji commented on GitHub (Jan 24, 2022): > 建议可以使用 DDNS。 和ddns不一样,我的意思是客户端frp将孔打好,然后服务端frp实现301跳转到这个孔。 比如客户端有一个web服务是192.168.1.1:80,frp经过运营商nat后是1.1.1.1:12345,在服务器的frp能自动更新客户端的ip和端口信息。访问者直接访问http://xxx.com,xxx.com的ip指向服务器,服务器的frp返回301跳转到1.1.1.1:12345,这样访问者就可以直接访问到web服务,访问者也不用安装frp程序就可以直连web,这对一些web文件服务很有用
Author
Owner

@github-actions[bot] commented on GitHub (Feb 24, 2022):

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

<!-- gh-comment-id:1049363765 --> @github-actions[bot] commented on GitHub (Feb 24, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#2215
No description provided.