mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #707] 建议扩大用户对标签和端口的选择权和自由权 #553
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#553
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 @lucktu on GitHub (Apr 13, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/707
以下面的 frpc.ini 配置为例进行说明
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 10022
目前的情况是:对于使用同一个服务器的用户来说,上例中的 ssh 和 10022 是唯一的,先来的用户可以使用,后来的用户就不能,如果把自己的端口 (remote_port) 设置为一个很偏僻的端口,恐怕久了连自己都不知道了,不大方便。
希望的情况是:针对每一个用户,只要你向服务器提出申请,那么你就将得到一个唯一的ID(如果服务器不便于管理,可以让使用者使用一个自己的邮箱作为这个ID),此时你就可以向服务器申请任意的标签 ssh 和任意的端口,这只是外在的表象的,只针对用户可见可用的,而此时服务器却根据那个ID,随机地分配一个端口给用户,并在标签前加一个ID(这是服务器后台干的事),此时用户仍然蒙在鼓里。因此,用户就可以任意地设置自己的标签和端口,只要在自己的ID下不重复就可以了。访问时,不同的子域名或个性化域名+端口,也是可以唯一的。
这样,用户的自由度会很大,很方便,大家觉得呢?
@xiaoyell commented on GitHub (Apr 19, 2018):
@lucktu
个人认为多用户管理应该单独部署,尽量不要集成在frp里,功能越复杂,执行效率越低
@fatedier commented on GitHub (Apr 19, 2018):
frpc 配置中有 user 字段,你可以配置成你自己的邮箱,这样就不会重名了。