[GH-ISSUE #1523] 身份安全设置在 V0.29.1 配置以后 两端启动无法认证通过 #1202

Closed
opened 2026-05-05 12:46:24 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ghost on GitHub (Nov 18, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1523

What version of frp are you using (./frpc -v or ./frps -v)?
frpc 0.29.1
frps 0.29.1

What operating system and processor architecture are you using (go env)?
add the token into the frpc.ini and frps.ini , and the value is 12345678

Configures you used:

frps.ini
[common]
token = 12345678

frpc.ini
[common]
token = 12345678

Start the app , and the console is :
frps
2019/11/18 15:53:40 [W] [service.go:302] register control error: authorization failed

frpc
2019/11/18 03:53:40 [W] [service.go:151] [2b4cff0e4e1f810b] reconnect to server error: authorization failed

解决访问未能解决
使用过以下解决方案未能解决上述问题

客户端连接失败,提示 authorization failed
出现这种情况说明鉴权失败,检查 frps 和 frpc 的配置文件中的 token 是否一致。

客户端连接失败,提示 authorization timeout
出现这种情况是因为 frps 所在服务器和 frpc 所在服务器的系统时间相差较大。如果不希望在身份校验时加入系统时间,可以将 frps 配置文件中的 authentication_timeout 设置为 0 来解决这个问题。

Originally created by @ghost on GitHub (Nov 18, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1523 **What version of frp are you using (./frpc -v or ./frps -v)?** frpc 0.29.1 frps 0.29.1 **What operating system and processor architecture are you using (`go env`)?** add the token into the frpc.ini and frps.ini , and the value is 12345678 **Configures you used:** frps.ini [common] token = 12345678 frpc.ini [common] token = 12345678 **Start the app , and the console is :** frps 2019/11/18 15:53:40 [W] [service.go:302] register control error: authorization failed frpc 2019/11/18 03:53:40 [W] [service.go:151] [2b4cff0e4e1f810b] reconnect to server error: authorization failed **解决访问未能解决** 使用过以下解决方案未能解决上述问题 客户端连接失败,提示 authorization failed 出现这种情况说明鉴权失败,检查 frps 和 frpc 的配置文件中的 token 是否一致。 客户端连接失败,提示 authorization timeout 出现这种情况是因为 frps 所在服务器和 frpc 所在服务器的系统时间相差较大。如果不希望在身份校验时加入系统时间,可以将 frps 配置文件中的 authentication_timeout 设置为 0 来解决这个问题。
Author
Owner

@fatedier commented on GitHub (Nov 18, 2019):

启动时都通过 frpc -c ./frpc.inifrps -c ./frps.ini 来启动,避免使用了默认的配置。

<!-- gh-comment-id:555017587 --> @fatedier commented on GitHub (Nov 18, 2019): 启动时都通过 `frpc -c ./frpc.ini` 和 `frps -c ./frps.ini` 来启动,避免使用了默认的配置。
Author
Owner

@ghost commented on GitHub (Nov 19, 2019):

启动的时候是通过 frpc -c ./frpc.ini 和 frps -c ./frps.ini 来启动的。不知道为何,未能解决此问题

<!-- gh-comment-id:555322791 --> @ghost commented on GitHub (Nov 19, 2019): 启动的时候是通过 frpc -c ./frpc.ini 和 frps -c ./frps.ini 来启动的。不知道为何,未能解决此问题
Author
Owner

@ghost commented on GitHub (Nov 20, 2019):

启动方式:

  1. 进入 frps frpc 的解压缩目录
  2. ./frps -c ./frps.ini & ./frpc -c ./frpc.ini 来启动的
<!-- gh-comment-id:555812454 --> @ghost commented on GitHub (Nov 20, 2019): 启动方式: 1. 进入 frps frpc 的解压缩目录 2. ./frps -c ./frps.ini & ./frpc -c ./frpc.ini 来启动的
Author
Owner

@fatedier commented on GitHub (Nov 29, 2019):

自行排查下吧,一般是自身使用姿势问题。

<!-- gh-comment-id:559641785 --> @fatedier commented on GitHub (Nov 29, 2019): 自行排查下吧,一般是自身使用姿势问题。
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#1202
No description provided.