[GH-ISSUE #5159] [Feature Request] 更便捷的内网直接访问 #4035

Closed
opened 2026-05-05 14:33:36 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @fingerart on GitHub (Feb 5, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5159

Describe the feature request

首先,感谢frp项目帮助我在没有公网IP的情况下便捷的访问内网服务❤️
我有一个场景请教一下是否有更便捷的方式实现。当我在外面的时候通过域名(https)访问家里的服务,但回到家的时候想不改变任何地址和端口(内网有DNS服务器)可以直接走内网,不通过公网的中间服务器,以加快访问速度。目前我能想到的实现方式有:

  1. 内网再开一个frps,通过DNS服务器解析到它的IP上去;
  2. 内网开启一个反向代理服务,手动配置与frpc相同的各项代理(似乎挺麻烦的)。

请问除了以上两种外还有其它方式能实现吗?

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 @fingerart on GitHub (Feb 5, 2026). Original GitHub issue: https://github.com/fatedier/frp/issues/5159 ### Describe the feature request 首先,感谢frp项目帮助我在没有公网IP的情况下便捷的访问内网服务❤️。 我有一个场景请教一下是否有更便捷的方式实现。当我在外面的时候通过域名(https)访问家里的服务,但回到家的时候想不改变任何地址和端口(内网有DNS服务器)可以直接走内网,不通过公网的中间服务器,以加快访问速度。目前我能想到的实现方式有: 1. 内网再开一个frps,通过DNS服务器解析到它的IP上去; 2. 内网开启一个反向代理服务,手动配置与frpc相同的各项代理(似乎挺麻烦的)。 请问除了以上两种外还有其它方式能实现吗? ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@wuai1024 commented on GitHub (Feb 15, 2026):

太复杂了,我简单来说这个吧。

  1. 把 https 做到内网里,端口和 frps 的公网服务器端口一致。
  2. frpc 代理为 tcp 类型,不要用 https 类型。
  3. 内网 dns 解析公网的那个域名到内网服务。
    即可无感使用,在外使用内网穿透服务,在家自动使用内网服务。
<!-- gh-comment-id:3904202430 --> @wuai1024 commented on GitHub (Feb 15, 2026): 太复杂了,我简单来说这个吧。 1. 把 https 做到内网里,端口和 frps 的公网服务器端口一致。 2. frpc 代理为 tcp 类型,不要用 https 类型。 3. 内网 dns 解析公网的那个域名到内网服务。 即可无感使用,在外使用内网穿透服务,在家自动使用内网服务。
Author
Owner

@fingerart commented on GitHub (Feb 16, 2026):

  1. 把 https 做到内网里,端口和 frps 的公网服务器端口一致。

内网服务基本上都没配https,我想大部分使用场景都不会直接配置到内部服务上吧?最便捷的是统一配置到nginx之类的代理上,另外端口也不可能专门跟公网一致。

<!-- gh-comment-id:3907460948 --> @fingerart commented on GitHub (Feb 16, 2026): > 1. 把 https 做到内网里,端口和 frps 的公网服务器端口一致。 内网服务基本上都没配https,我想大部分使用场景都不会直接配置到内部服务上吧?最便捷的是统一配置到nginx之类的代理上,另外端口也不可能专门跟公网一致。
Author
Owner

@wuai1024 commented on GitHub (Feb 19, 2026):

方法我已经说了,我也是那样做的,我的 https 都在内网环境,外面只需要端口映射就行,我有公网,也有 frps。

<!-- gh-comment-id:3927052239 --> @wuai1024 commented on GitHub (Feb 19, 2026): 方法我已经说了,我也是那样做的,我的 https 都在内网环境,外面只需要端口映射就行,我有公网,也有 frps。
Author
Owner

@fingerart commented on GitHub (Feb 20, 2026):

@wuai1024 谢谢你的建议。
我尝试了内部再创建一个frps,之前的frpc使用--config-dir同时连接本地和远程服务,能达到我的预期

<!-- gh-comment-id:3935966906 --> @fingerart commented on GitHub (Feb 20, 2026): @wuai1024 谢谢你的建议。 我尝试了内部再创建一个frps,之前的frpc使用--config-dir同时连接本地和远程服务,能达到我的预期
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#4035
No description provided.