mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5096] [Feature Request] 通过SRV或302重定向支持frps部署在内网 #4001
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4001
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wukan1986 on GitHub (Dec 14, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5096
Describe the feature request
安装Lucky等STUN内网穿透工具,就能将7000暴露到公网了。这样可以实现不借助公网服务器,一个子网访问另一个子网提供的各种网络服务。
其他frpc就可以连接到动态的serverPort和serverAddr,只要编辑frpc.toml即可。
Lucky可以配置将STUN端口通过WebHook更新到Cloudflare。有两种方案
这两种方案都可以传递新域名(IP)和端口,然后用脚本来更新toml
SRV记录
302重定向
这两种办法的局限是都需要在启动frpc前更新toml,如果中途STUN重新打洞,需要重新启动脚本获取新端口,并重启frpc
如果frp原生支持这两种模式,那么可以省去重新更新端口的步骤,那就非常棒了
Describe alternatives you've considered
No response
Affected area
@github-actions[bot] commented on GitHub (Dec 29, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.