mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4944] [Feature Request] 如何转发 ssh 端口到公网服务器的本地 #3897
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#3897
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 @jiyunqq on GitHub (Aug 18, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4944
Describe the feature request
cat frpc.toml
[common]
server_addr = xx.xx.xx.xx
server_port = 7000
token = mytoken
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 2222
bind_local_addr = "127.0.0.1" # 仅让服务端的 2222 绑定到 127.0.0.1 而不是 0.0.0.0:2222
这个 bind_local_addr 配置不生效
Describe alternatives you've considered
No response
Affected area
@sky22333 commented on GitHub (Aug 19, 2025):
为什么不直接用防火墙关闭
2222端口的公网访问呢@jiyunqq commented on GitHub (Aug 20, 2025):
@sky22333 防火墙是关闭的,不想做那么多的设置,服务器上开了很多的服务,不想一个一个去算端口,就想简单一点,
然而,我要远程的 frpc 客户端可能不是很安全,要内网访问,或者隧道跳转访问。我觉得 frp 得有这个功能,会安全很多,而不是直接给到防火墙
@f0re1gnKey commented on GitHub (Aug 20, 2025):
https://github.com/f0re1gnKey/frp-modify
@jiyunqq commented on GitHub (Aug 22, 2025):
@f0re1gnKey 点赞,是现在 close issue 吗?还是等合并到 github
@f0re1gnKey commented on GitHub (Aug 22, 2025):
不会发起pr,因为开发者明确表示永远不会支持这些“不相关”的功能
@jiyunqq commented on GitHub (Aug 25, 2025):
ok, 那让开发者 close 吧
@github-actions[bot] commented on GitHub (Sep 9, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.