[GH-ISSUE #4145] 是否不兼容旧版本中密码含有 @ 和 . 等字符? #3269

Closed
opened 2026-05-05 14:06:43 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @bbingz on GitHub (Apr 10, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4145

Bug Description

是否不兼容旧版本中密码含有 @ 和 . 等字符?新版本的 frpc 使用 toml 配置,一样的密码可以连接上。
但旧客户端使用显示密码不对

2024-04-10 17:59:40.697 [I] [frps/root.go:105] frps uses config file: /usr/local/etc/frp/frps.toml
2024-04-10 17:59:40.960 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:1102
2024-04-10 17:59:40.960 [I] [frps/root.go:114] frps started successfully
2024-04-10 17:59:40.961 [I] [server/service.go:350] dashboard listen on 0.0.0.0:7500
2024-04-10 17:59:42.657 [I] [server/service.go:575] [1e5b4f0eaf188e4a] client login info: ip [111.58.x.x:2137] version [0.56.0] hostname [] os [darwin] arch [arm64]
2024-04-10 17:59:42.664 [D] [server/control.go:432] [1e5b4f0eaf188e4a] receive heartbeat
2024-04-10 17:59:42.664 [D] [server/control.go:243] [1e5b4f0eaf188e4a] new work connection registered
2024-04-10 17:59:42.664 [I] [proxy/tcp.go:82] [1e5b4f0eaf188e4a] [Home_MacMini.ssh] tcp proxy listen port [2201]
2024-04-10 17:59:42.664 [I] [server/control.go:401] [1e5b4f0eaf188e4a] new proxy [Home_MacMini.ssh] type [tcp] success
bing@BingdeMac-mini frp % tail /Users/bing/Logs/frps.log
2024-04-10 17:59:42.664 [D] [server/control.go:432] [1e5b4f0eaf188e4a] receive heartbeat
2024-04-10 17:59:42.664 [D] [server/control.go:243] [1e5b4f0eaf188e4a] new work connection registered
2024-04-10 17:59:42.664 [I] [proxy/tcp.go:82] [1e5b4f0eaf188e4a] [Home_MacMini.ssh] tcp proxy listen port [2201]
2024-04-10 17:59:42.664 [I] [server/control.go:401] [1e5b4f0eaf188e4a] new proxy [Home_MacMini.ssh] type [tcp] success
2024-04-10 17:59:47.636 [I] [server/service.go:575] [209fcfa060381125] client login info: ip [117.141.x.x:60026] version [0.51.1] hostname [] os [darwin] arch [arm64]
2024-04-10 17:59:47.636 [W] [server/service.go:445] register control error: token in login doesn't match token from configuration
2024-04-10 17:59:47.640 [D] [server/service.go:524] Accept new mux stream error: EOF
2024-04-10 17:59:50.752 [I] [server/service.go:575] [b88e6e22ae4ee4b8] client login info: ip [117.141.x.x:57224] version [0.51.1] hostname [] os [darwin] arch [amd64]
2024-04-10 17:59:50.752 [W] [server/service.go:445] register control error: token in login doesn't match token from configuration
2024-04-10 17:59:50.760 [D] [server/service.go:524] Accept new mux stream error: EOF

frpc Version

0.51.1

frps Version

0.57.0

System Architecture

macos

Configurations

frps.toml

bindAddr = "0.0.0.0"
bindPort = 1102
WebServer.addr = "0.0.0.0"
WebServer.port = 7500
WebServer.user = "admin"
WebServer.password = "xxxx@2024"
log.to = "/Users/bing/Logs/frps.log"
log.level = "debug"
log.maxDays = 365
auth.method = "token"
auth.token = "xxx2024@xxx.xxx"

frpc.ini
[common]
server_addr = xxxxxxxx
server_port = 1102
authentication_token = xxx2024@xxx.xxx

[ssh-xxx]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 2207

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @bbingz on GitHub (Apr 10, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4145 ### Bug Description 是否不兼容旧版本中密码含有 @ 和 . 等字符?新版本的 frpc 使用 toml 配置,一样的密码可以连接上。 但旧客户端使用显示密码不对 2024-04-10 17:59:40.697 [I] [frps/root.go:105] frps uses config file: /usr/local/etc/frp/frps.toml 2024-04-10 17:59:40.960 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:1102 2024-04-10 17:59:40.960 [I] [frps/root.go:114] frps started successfully 2024-04-10 17:59:40.961 [I] [server/service.go:350] dashboard listen on 0.0.0.0:7500 2024-04-10 17:59:42.657 [I] [server/service.go:575] [1e5b4f0eaf188e4a] client login info: ip [111.58.x.x:2137] version [0.56.0] hostname [] os [darwin] arch [arm64] 2024-04-10 17:59:42.664 [D] [server/control.go:432] [1e5b4f0eaf188e4a] receive heartbeat 2024-04-10 17:59:42.664 [D] [server/control.go:243] [1e5b4f0eaf188e4a] new work connection registered 2024-04-10 17:59:42.664 [I] [proxy/tcp.go:82] [1e5b4f0eaf188e4a] [Home_MacMini.ssh] tcp proxy listen port [2201] 2024-04-10 17:59:42.664 [I] [server/control.go:401] [1e5b4f0eaf188e4a] new proxy [Home_MacMini.ssh] type [tcp] success bing@BingdeMac-mini frp % tail /Users/bing/Logs/frps.log 2024-04-10 17:59:42.664 [D] [server/control.go:432] [1e5b4f0eaf188e4a] receive heartbeat 2024-04-10 17:59:42.664 [D] [server/control.go:243] [1e5b4f0eaf188e4a] new work connection registered 2024-04-10 17:59:42.664 [I] [proxy/tcp.go:82] [1e5b4f0eaf188e4a] [Home_MacMini.ssh] tcp proxy listen port [2201] 2024-04-10 17:59:42.664 [I] [server/control.go:401] [1e5b4f0eaf188e4a] new proxy [Home_MacMini.ssh] type [tcp] success 2024-04-10 17:59:47.636 [I] [server/service.go:575] [209fcfa060381125] client login info: ip [117.141.x.x:60026] version [0.51.1] hostname [] os [darwin] arch [arm64] 2024-04-10 17:59:47.636 [W] [server/service.go:445] register control error: token in login doesn't match token from configuration 2024-04-10 17:59:47.640 [D] [server/service.go:524] Accept new mux stream error: EOF 2024-04-10 17:59:50.752 [I] [server/service.go:575] [b88e6e22ae4ee4b8] client login info: ip [117.141.x.x:57224] version [0.51.1] hostname [] os [darwin] arch [amd64] 2024-04-10 17:59:50.752 [W] [server/service.go:445] register control error: token in login doesn't match token from configuration 2024-04-10 17:59:50.760 [D] [server/service.go:524] Accept new mux stream error: EOF ### frpc Version 0.51.1 ### frps Version 0.57.0 ### System Architecture macos ### Configurations frps.toml bindAddr = "0.0.0.0" bindPort = 1102 WebServer.addr = "0.0.0.0" WebServer.port = 7500 WebServer.user = "admin" WebServer.password = "xxxx@2024" log.to = "/Users/bing/Logs/frps.log" log.level = "debug" log.maxDays = 365 auth.method = "token" auth.token = "xxx2024@xxx.xxx" frpc.ini [common] server_addr = xxxxxxxx server_port = 1102 authentication_token = xxx2024@xxx.xxx [ssh-xxx] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 2207 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner
<!-- gh-comment-id:2047363578 --> @fatedier commented on GitHub (Apr 10, 2024): https://github.com/fatedier/frp/blob/dev/conf/legacy/frpc_legacy_full.ini#L44
Author
Owner

@bbingz commented on GitHub (Apr 11, 2024):

frps.toml

bindAddr = "0.0.0.0"
bindPort = 1102
WebServer.addr = "0.0.0.0"
WebServer.port = 7500
WebServer.user = "admin"
WebServer.password = "xxxx@2024"
log.to = "/Users/bing/Logs/frps.log"
log.level = "debug"
log.maxDays = 365
auth.method = "token"
auth.token = "xxx2024@xxx.xxx"

frpc.ini

[common]
server_addr = xxxxxxxx
server_port = 1102
token = xxx2024@xxx.xxx

[ssh-xxx]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 2207
❯ /opt/homebrew/opt/frpc/bin/frpc -c /opt/homebrew/etc/frp/frpc.ini
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
2024-04-11 17:21:04.020 [I] [sub/root.go:142] start frpc service for config file [/opt/homebrew/etc/frp/frpc.ini]
2024-04-11 17:21:04.020 [I] [client/service.go:294] try to connect to server...
2024-04-11 17:21:04.043 [E] [client/service.go:279] token in login doesn't match token from configuration
2024-04-11 17:21:04.043 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration
2024-04-11 17:21:06.075 [I] [client/service.go:294] try to connect to server...
2024-04-11 17:21:06.100 [E] [client/service.go:279] token in login doesn't match token from configuration
2024-04-11 17:21:06.100 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration
2024-04-11 17:21:10.484 [I] [client/service.go:294] try to connect to server...
2024-04-11 17:21:10.513 [E] [client/service.go:279] token in login doesn't match token from configuration
2024-04-11 17:21:10.513 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration

还是提示错误

<!-- gh-comment-id:2049281368 --> @bbingz commented on GitHub (Apr 11, 2024): frps.toml ``` bindAddr = "0.0.0.0" bindPort = 1102 WebServer.addr = "0.0.0.0" WebServer.port = 7500 WebServer.user = "admin" WebServer.password = "xxxx@2024" log.to = "/Users/bing/Logs/frps.log" log.level = "debug" log.maxDays = 365 auth.method = "token" auth.token = "xxx2024@xxx.xxx" ``` frpc.ini ``` [common] server_addr = xxxxxxxx server_port = 1102 token = xxx2024@xxx.xxx [ssh-xxx] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 2207 ``` ``` ❯ /opt/homebrew/opt/frpc/bin/frpc -c /opt/homebrew/etc/frp/frpc.ini WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024-04-11 17:21:04.020 [I] [sub/root.go:142] start frpc service for config file [/opt/homebrew/etc/frp/frpc.ini] 2024-04-11 17:21:04.020 [I] [client/service.go:294] try to connect to server... 2024-04-11 17:21:04.043 [E] [client/service.go:279] token in login doesn't match token from configuration 2024-04-11 17:21:04.043 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration 2024-04-11 17:21:06.075 [I] [client/service.go:294] try to connect to server... 2024-04-11 17:21:06.100 [E] [client/service.go:279] token in login doesn't match token from configuration 2024-04-11 17:21:06.100 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration 2024-04-11 17:21:10.484 [I] [client/service.go:294] try to connect to server... 2024-04-11 17:21:10.513 [E] [client/service.go:279] token in login doesn't match token from configuration 2024-04-11 17:21:10.513 [W] [client/service.go:297] connect to server error: token in login doesn't match token from configuration ``` 还是提示错误
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#3269
No description provided.