[GH-ISSUE #212] 服务器端 common 可以设置 auth_token 吗? #143

Closed
opened 2026-05-05 11:51:29 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @lotc on GitHub (Jan 4, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/212

说明文档里面这样介绍

服务器端可以在 frps.ini 中为每一个代理设置一个 auth_token 用于对客户端连接进行身份验证

示例文件里面 frps.ini 的 common 没有 auth_token,但 frpc.ini 的 common 有 auth_token

  1. 如果 frps.ini 的 common 设置了 auth_token,会否影响每一个代理的 auth_token?
  2. 如果 frps.ini 没有设置 auth_token,frpc.ini 是保持 auth_token = 123 还是删除该行?
Originally created by @lotc on GitHub (Jan 4, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/212 说明文档里面这样介绍 > 服务器端可以在 frps.ini 中为每一个代理设置一个 auth_token 用于对客户端连接进行身份验证 示例文件里面 frps.ini 的 common 没有 auth_token,但 frpc.ini 的 common 有 auth_token 1) 如果 frps.ini 的 common 设置了 auth_token,会否影响每一个代理的 auth_token? 2) 如果 frps.ini 没有设置 auth_token,frpc.ini 是保持 auth_token = 123 还是删除该行?
Author
Owner

@fatedier commented on GitHub (Jan 4, 2017):

  1. 目前需要为每一个 proxy 指定 auth_token,common 中配置的不会起作用。
  2. frps 中配置的 proxy 必须有 auth_token,不存在会报错退出。
<!-- gh-comment-id:270348483 --> @fatedier commented on GitHub (Jan 4, 2017): 1. 目前需要为每一个 proxy 指定 auth_token,common 中配置的不会起作用。 2. frps 中配置的 proxy 必须有 auth_token,不存在会报错退出。
Author
Owner

@lotc commented on GitHub (Jan 5, 2017):

根据 #213 的说法,我应该把 frps 里面每一个 proxy 的 auth_token 设置成一样的;
然后 frpc 里面只需要在 common 项填写,对吧?

<!-- gh-comment-id:270533855 --> @lotc commented on GitHub (Jan 5, 2017): 根据 #213 的说法,我应该把 frps 里面每一个 proxy 的 auth_token 设置成一样的; 然后 frpc 里面只需要在 common 项填写,对吧?
Author
Owner

@fatedier commented on GitHub (Jan 5, 2017):

只有你一个人用的话是的,当你需要让其他人使用时,可以为他用的 proxy 设置另一个 auth_token。

<!-- gh-comment-id:270541687 --> @fatedier commented on GitHub (Jan 5, 2017): 只有你一个人用的话是的,当你需要让其他人使用时,可以为他用的 proxy 设置另一个 auth_token。
Author
Owner

@lotc commented on GitHub (Jan 5, 2017):

完全明白你的思路了。
frps 里面根据不同用户需求,将用户1需要的服务全部设置成 auth_token1,用户2的设置成 auth_token2,用户3就 auth_token3。
然后 frpc 上,用户1使用需要的服务,全部使用 auth_token1;用户2就用 auth_token2,以此类推。

<!-- gh-comment-id:270542692 --> @lotc commented on GitHub (Jan 5, 2017): 完全明白你的思路了。 frps 里面根据不同用户需求,将用户1需要的服务全部设置成 auth_token1,用户2的设置成 auth_token2,用户3就 auth_token3。 然后 frpc 上,用户1使用需要的服务,全部使用 auth_token1;用户2就用 auth_token2,以此类推。
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#143
No description provided.