[GH-ISSUE #1104] frps.log里面提示authorization failed #863

Closed
opened 2026-05-05 12:32:58 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Leon-Shaw on GitHub (Feb 28, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1104

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

frpc:0.24.1
frps:0.20.0

What operating system and processor architecture are you using (go env)?

padavan 3.4.3.9-099_7-11-25
centos_7_06_64_20G_alibase_20190218

Configures you used:

#服务器配置:
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 6655
# udp port used for kcp protocol, it can be same with 'bind_port'
# if not set, kcp is disabled in frps
kcp_bind_port = 6655
# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 6443
# dashboard assets directory(only for debug mode)
dashboard_user = ******
dashboard_pwd = ******
# assets_dir = ./static
vhost_http_port = 1551
vhost_https_port = 8102
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 30
# auth token
token = 1
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
#allow_ports = 1-65535
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 50
# if tcp stream multiplexing is used, default is true
tcp_mux = true
#客户端配置:
cat > "/tmp/frp/myfrpc.ini" <<-\EOF
[common]
server_addr = ******
server_port = 6655
log_file = /dev/null
log_level = info

log_max_days = 3
privilege_token = 1

pool_count = 5
tcp_max = true
user = k3
login_fail_exit = true
protocal = tcp

[web]
type = http
local_ip = 192.168.123.1
local_port = 81
subdomain = test

EOF

Steps to reproduce the issue:

按照知乎上的教程一步步操作
配置路由器中的参数并启动

Describe the results you received:

frps.log里面提示authorization failed

Describe the results you expected:

能够正常使用

Additional information you deem important (e.g. issue happens only occasionally):

检查过frps.ini中的"token“和myfrpc.ini中的“privilege_token”值一样

Originally created by @Leon-Shaw on GitHub (Feb 28, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1104 **What version of frp are you using (./frpc -v or ./frps -v)?** frpc:0.24.1 frps:0.20.0 **What operating system and processor architecture are you using (go env)?** padavan 3.4.3.9-099_7-11-25 centos_7_06_64_20G_alibase_20190218 **Configures you used:** ``` #服务器配置: # [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80" bind_addr = 0.0.0.0 bind_port = 6655 # udp port used for kcp protocol, it can be same with 'bind_port' # if not set, kcp is disabled in frps kcp_bind_port = 6655 # if you want to configure or reload frps by dashboard, dashboard_port must be set dashboard_port = 6443 # dashboard assets directory(only for debug mode) dashboard_user = ****** dashboard_pwd = ****** # assets_dir = ./static vhost_http_port = 1551 vhost_https_port = 8102 # console or real logFile path like ./frps.log log_file = ./frps.log # debug, info, warn, error log_level = info log_max_days = 30 # auth token token = 1 # only allow frpc to bind ports you list, if you set nothing, there won't be any limit #allow_ports = 1-65535 # pool_count in each proxy will change to max_pool_count if they exceed the maximum value max_pool_count = 50 # if tcp stream multiplexing is used, default is true tcp_mux = true ``` ``` #客户端配置: cat > "/tmp/frp/myfrpc.ini" <<-\EOF [common] server_addr = ****** server_port = 6655 log_file = /dev/null log_level = info log_max_days = 3 privilege_token = 1 pool_count = 5 tcp_max = true user = k3 login_fail_exit = true protocal = tcp [web] type = http local_ip = 192.168.123.1 local_port = 81 subdomain = test EOF ``` **Steps to reproduce the issue:** 按照知乎上的[教程](https://zhuanlan.zhihu.com/p/47855989)一步步操作 配置路由器中的参数并启动 **Describe the results you received:** frps.log里面提示authorization failed **Describe the results you expected:** 能够正常使用 **Additional information you deem important (e.g. issue happens only occasionally):** 检查过frps.ini中的"token“和myfrpc.ini中的“privilege_token”值一样
Author
Owner

@swordstudiox commented on GitHub (Feb 28, 2019):

客户端privilege_token?你用的是0.24.1,应该是token!!!

<!-- gh-comment-id:468299579 --> @swordstudiox commented on GitHub (Feb 28, 2019): 客户端privilege_token?你用的是0.24.1,应该是token!!!
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#863
No description provided.