[GH-ISSUE #4039] Frpc can directly connect to the frps with the token set #3197

Closed
opened 2026-05-05 14:04:02 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Caelio-wings on GitHub (Mar 2, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4039

Bug Description

If frpc does not configure the token, it can directly connect to the server configured with the token.
截图_20240302203518

frpc Version

0.54.0

frps Version

0.54.0

System Architecture

frps is linux/amd64,frpc is windows/amd64

Configurations

frpc.toml

serverAddr = "x.x.x.x"
serverPort = 7000

[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5894
remotePort = 6000

frps.toml

bindPort = 7000
auth.method = "token"
auth.token = "if786549wfddas5265"
transport.tcpMux = false
log.to = "./frps.log"
log.level = "info"
log.maxDays = 3

Logs

No response

Steps to reproduce

  1. just use defult configuration

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Caelio-wings on GitHub (Mar 2, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4039 ### Bug Description If frpc does not configure the token, it can directly connect to the server configured with the token. ![截图_20240302203518](https://github.com/fatedier/frp/assets/66193577/58fa41c9-ecc8-4b99-968d-509c0efdb88b) ### frpc Version 0.54.0 ### frps Version 0.54.0 ### System Architecture frps is linux/amd64,frpc is windows/amd64 ### Configurations frpc.toml ``` serverAddr = "x.x.x.x" serverPort = 7000 [[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 5894 remotePort = 6000 ``` frps.toml ``` bindPort = 7000 auth.method = "token" auth.token = "if786549wfddas5265" transport.tcpMux = false log.to = "./frps.log" log.level = "info" log.maxDays = 3 ``` ### Logs _No response_ ### Steps to reproduce 1. just use defult configuration 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Mar 15, 2024):

image
<!-- gh-comment-id:1999033806 --> @fatedier commented on GitHub (Mar 15, 2024): <img width="440" alt="image" src="https://github.com/fatedier/frp/assets/7346661/de70daff-926d-4f14-891c-25ec8a499b99">
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#3197
No description provided.