[GH-ISSUE #2441] 希望可以在client端控制每个服务是否允许wan访问 #1941

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

Originally created by @Sora233 on GitHub (Jun 7, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2441

举个例子,我在client端配置了sshweb两个服务,我希望在client配置让web监听0.0.0.0,而ssh监听localhost,而不是设置防火墙。

Originally created by @Sora233 on GitHub (Jun 7, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2441 举个例子,我在client端配置了`ssh`和`web`两个服务,我希望在client配置让`web`监听`0.0.0.0`,而`ssh`监听`localhost`,而不是设置防火墙。
gitea-mirror 2026-05-05 13:14:59 -06:00
Author
Owner

@Sora233 commented on GitHub (Jun 7, 2021):

一个简单workaround,如果有人需要的话 commit
仅TCP/UDP模式在client端添加了remote_addr (0.0.0.0 or localhost or other)
也许还可以支持多网卡,但我只是简单地想让frp保留http的同时开一个非公开的ssh反向代理。

<!-- gh-comment-id:856159695 --> @Sora233 commented on GitHub (Jun 7, 2021): 一个简单workaround,如果有人需要的话 [commit](https://github.com/Sora233/frp/commit/60dfd67ffdf3d86020e29f3c6d19e80e8507ab71)。 仅TCP/UDP模式在client端添加了remote_addr (0.0.0.0 or localhost or other) 也许还可以支持多网卡,但我只是简单地想让frp保留http的同时开一个非公开的ssh反向代理。
Author
Owner

@fatedier commented on GitHub (Jun 8, 2021):

可以启动两个 frps,通过 proxy_bind_addr 设置要绑定的地址,分别用做不同的用途。

<!-- gh-comment-id:856834291 --> @fatedier commented on GitHub (Jun 8, 2021): 可以启动两个 frps,通过 `proxy_bind_addr` 设置要绑定的地址,分别用做不同的用途。
Author
Owner

@github-actions[bot] commented on GitHub (Jul 24, 2021):

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

<!-- gh-comment-id:885974336 --> @github-actions[bot] commented on GitHub (Jul 24, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d 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#1941
No description provided.