[GH-ISSUE #327] 可以在客户端配置文件指定remote_listen_ip么 #240

Closed
opened 2026-05-05 12:02:03 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @wwqgtxx on GitHub (May 22, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/327

有些时候服务器可能有多个公网Ip,而只需要其中的一个IP提供该服务;有时候可能只希望将客户端端口映射到服务器的localhost(比如讲内网的数据库映射到公网服务器内部提供服务),所以希望作者可以提供监听ip设置,提高frp的适用性

Originally created by @wwqgtxx on GitHub (May 22, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/327 有些时候服务器可能有多个公网Ip,而只需要其中的一个IP提供该服务;有时候可能只希望将客户端端口映射到服务器的localhost(比如讲内网的数据库映射到公网服务器内部提供服务),所以希望作者可以提供监听ip设置,提高frp的适用性
Author
Owner

@fatedier commented on GitHub (May 22, 2017):

通过服务器配置文件 bind_addr 指定,客户端没有权限指定绑定 ip,所以不会提供这个功能。如果有特殊需求可以 fork 后自己修改编译。

<!-- gh-comment-id:302980226 --> @fatedier commented on GitHub (May 22, 2017): 通过服务器配置文件 bind_addr 指定,客户端没有权限指定绑定 ip,所以不会提供这个功能。如果有特殊需求可以 fork 后自己修改编译。
Author
Owner

@wwqgtxx commented on GitHub (May 22, 2017):

那如何实现绑定localhost呢

<!-- gh-comment-id:302984257 --> @wwqgtxx commented on GitHub (May 22, 2017): 那如何实现绑定localhost呢
Author
Owner

@fatedier commented on GitHub (May 22, 2017):

如果不想其他人访问,可以自行设置防火墙,或者采用其他方式实现。

<!-- gh-comment-id:302984655 --> @fatedier commented on GitHub (May 22, 2017): 如果不想其他人访问,可以自行设置防火墙,或者采用其他方式实现。
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#240
No description provided.