[GH-ISSUE #4944] [Feature Request] 如何转发 ssh 端口到公网服务器的本地 #3897

Closed
opened 2026-05-05 14:29:12 -06:00 by gitea-mirror · 7 comments
Owner

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:29:12 -06:00
Author
Owner

@sky22333 commented on GitHub (Aug 19, 2025):

为什么不直接用防火墙关闭2222端口的公网访问呢

<!-- gh-comment-id:3199009464 --> @sky22333 commented on GitHub (Aug 19, 2025): 为什么不直接用防火墙关闭`2222`端口的公网访问呢
Author
Owner

@jiyunqq commented on GitHub (Aug 20, 2025):

@sky22333 防火墙是关闭的,不想做那么多的设置,服务器上开了很多的服务,不想一个一个去算端口,就想简单一点,
然而,我要远程的 frpc 客户端可能不是很安全,要内网访问,或者隧道跳转访问。我觉得 frp 得有这个功能,会安全很多,而不是直接给到防火墙

<!-- gh-comment-id:3205336259 --> @jiyunqq commented on GitHub (Aug 20, 2025): @sky22333 防火墙是关闭的,不想做那么多的设置,服务器上开了很多的服务,不想一个一个去算端口,就想简单一点, 然而,我要远程的 frpc 客户端可能不是很安全,要内网访问,或者隧道跳转访问。我觉得 frp 得有这个功能,会安全很多,而不是直接给到防火墙
Author
Owner

@f0re1gnKey commented on GitHub (Aug 20, 2025):

@sky22333 防火墙是关闭的,不想做那么多的设置,服务器上开了很多的服务,不想一个一个去算端口,就想简单一点, 然而,我要远程的 frpc 客户端可能不是很安全,要内网访问,或者隧道跳转访问。我觉得 frp 得有这个功能,会安全很多,而不是直接给到防火墙

https://github.com/f0re1gnKey/frp-modify

<!-- gh-comment-id:3206366053 --> @f0re1gnKey commented on GitHub (Aug 20, 2025): > [@sky22333](https://github.com/sky22333) 防火墙是关闭的,不想做那么多的设置,服务器上开了很多的服务,不想一个一个去算端口,就想简单一点, 然而,我要远程的 frpc 客户端可能不是很安全,要内网访问,或者隧道跳转访问。我觉得 frp 得有这个功能,会安全很多,而不是直接给到防火墙 https://github.com/f0re1gnKey/frp-modify
Author
Owner

@jiyunqq commented on GitHub (Aug 22, 2025):

@f0re1gnKey 点赞,是现在 close issue 吗?还是等合并到 github

<!-- gh-comment-id:3213131383 --> @jiyunqq commented on GitHub (Aug 22, 2025): @f0re1gnKey 点赞,是现在 close issue 吗?还是等合并到 github
Author
Owner

@f0re1gnKey commented on GitHub (Aug 22, 2025):

@f0re1gnKey 点赞,是现在 close issue 吗?还是等合并到 github

不会发起pr,因为开发者明确表示永远不会支持这些“不相关”的功能

<!-- gh-comment-id:3214163645 --> @f0re1gnKey commented on GitHub (Aug 22, 2025): > [@f0re1gnKey](https://github.com/f0re1gnKey) 点赞,是现在 close issue 吗?还是等合并到 github 不会发起pr,因为开发者明确表示永远不会支持这些“不相关”的功能
Author
Owner

@jiyunqq commented on GitHub (Aug 25, 2025):

ok, 那让开发者 close 吧

<!-- gh-comment-id:3218560855 --> @jiyunqq commented on GitHub (Aug 25, 2025): ok, 那让开发者 close 吧
Author
Owner

@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.

<!-- gh-comment-id:3268455037 --> @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.
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#3897
No description provided.