[GH-ISSUE #3811] .toml not working (where .ini works) #3033

Closed
opened 2026-05-05 13:57:41 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Preston2jager on GitHub (Nov 28, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3811

Bug Description

I am trying to establish a private proxy for rdp from my windows tablet to my windows desktop at home, the relay is my ubuntu vps with public ip. So frpc on 2 windows devices and frps on linux server.

I followed the full template to prepare .toml config and it passed the frpc verify command.

While execute standard frpc -c frpc.toml for both frpc clients:

  • both frpc report login to server success, get run id[xxxxxx]
  • debug level frpc log got receive heartbeat from server and send heartbeat to server
  • fprs log got clinet login info:ip [xxx]...
  • No error log at all
  • However, no proxy register info
  • RDP connection failed

Then I created .ini configs with the same info (but of course different syntax) and the RDP is now working.

On server, the frps is started with frps -c frps.toml and no changes.

frpc Version

0.52.3

frps Version

0.52.3

System Architecture

client: windows/amd64 server:Linux/amd64

Configurations

Frpc 1:

serverAddr = "xxx"
serverPort = 7000
auth.method = "token"
auth.token = "xxx"

rdp
name = "test"
type = "stcp"
secretKey = "111"
localIp = "127.0.0.1"
localPort = 33890

Frpc 2:

serverAddr = "xxx"
serverPort = 7000
auth.method = "token"
auth.token = "xxx"

rdp-v
name = "test"
type = "stcp"
secretKey = "111"
serverName = "test"
BindAddr = "127.0.0.1"
bindPort = 1234

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 @Preston2jager on GitHub (Nov 28, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3811 ### Bug Description I am trying to establish a private proxy for rdp from my windows tablet to my windows desktop at home, the relay is my ubuntu vps with public ip. So frpc on 2 windows devices and frps on linux server. I followed the full template to prepare .toml config and it passed the `frpc verify` command. While execute standard `frpc -c frpc.toml` for both frpc clients: - both frpc report `login to server success, get run id[xxxxxx]` - debug level frpc log got `receive heartbeat from server` and `send heartbeat to server` - fprs log got `clinet login info:ip [xxx]...` - No error log at all - **However, no proxy register info** - RDP connection failed Then I created .ini configs with the same info (but of course different syntax) and the RDP is now working. On server, the frps is started with `frps -c frps.toml` and no changes. ### frpc Version 0.52.3 ### frps Version 0.52.3 ### System Architecture client: windows/amd64 server:Linux/amd64 ### Configurations Frpc 1: serverAddr = "xxx" serverPort = 7000 auth.method = "token" auth.token = "xxx" [[rdp]] name = "test" type = "stcp" secretKey = "111" localIp = "127.0.0.1" localPort = 33890 Frpc 2: serverAddr = "xxx" serverPort = 7000 auth.method = "token" auth.token = "xxx" [[rdp-v]] name = "test" type = "stcp" secretKey = "111" serverName = "test" BindAddr = "127.0.0.1" bindPort = 1234 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (Nov 28, 2023):

Change [[rdp]] [[rdp-v]]to [[proxies]].

<!-- gh-comment-id:1829690977 --> @superzjg commented on GitHub (Nov 28, 2023): Change `[[rdp]]` `[[rdp-v]]`to `[[proxies]]`.
Author
Owner

@Preston2jager commented on GitHub (Nov 28, 2023):

@superzjg Thanks, its working now.

<!-- gh-comment-id:1829742836 --> @Preston2jager commented on GitHub (Nov 28, 2023): @superzjg Thanks, its working now.
Author
Owner

@ylluminate commented on GitHub (Dec 21, 2023):

It seems that the conversion from the .ini format to .toml is not quite as straight forward as I had believed it should be. How should an entry such as the following in the .ini format:

# Some HTTPS Service
[win10_workbench_servicename]
type = tcp
local_ip = 10.0.0.31
local_port = 7465
remote_port = 22283

Be converted to the .toml format?

I tried the following, which does not work:

[[proxies]]
name = "win10_workbench_servicename"
type = "tcp"
localIP = "10.0.0.31"
localPort = 7465
bindPort = 22283

I also tried it with "remotePort" vs "bindPort" as well with no success.

In addition, I attempted to convert the following header / "common" information to .toml and it did not work and I would love to see some clarification:

[common]
server_addr = "sub.domain.tld"
server_port = 26261
protocol = "kcp"
token = "<REDACTED>"
authenticate_heartbeats = false
authenticate_new_work_conns = true

I attempted to convert it to:

user = "somename"
serverAddr = "sub.domain.tld"
serverPort = 26261
auth.method = "token"
auth.token = "<REDACTED>"
authenticateNewWorkConns = true
transport.protocol = "kcp"
transport.tls.enable = false
transport.poolCount = 5
log.level = "info"
log.maxDays = 3
log.disablePrintColor = true

But that also failed.

<!-- gh-comment-id:1866923757 --> @ylluminate commented on GitHub (Dec 21, 2023): It seems that the conversion from the .ini format to .toml is not quite as straight forward as I had believed it should be. How should an entry such as the following in the .ini format: ``` # Some HTTPS Service [win10_workbench_servicename] type = tcp local_ip = 10.0.0.31 local_port = 7465 remote_port = 22283 ``` Be converted to the .toml format? I tried the following, which does not work: ``` [[proxies]] name = "win10_workbench_servicename" type = "tcp" localIP = "10.0.0.31" localPort = 7465 bindPort = 22283 ``` I also tried it with "remotePort" vs "bindPort" as well with no success. In addition, I attempted to convert the following header / "common" information to .toml and it did not work and I would love to see some clarification: ``` [common] server_addr = "sub.domain.tld" server_port = 26261 protocol = "kcp" token = "<REDACTED>" authenticate_heartbeats = false authenticate_new_work_conns = true ``` I attempted to convert it to: ``` user = "somename" serverAddr = "sub.domain.tld" serverPort = 26261 auth.method = "token" auth.token = "<REDACTED>" authenticateNewWorkConns = true transport.protocol = "kcp" transport.tls.enable = false transport.poolCount = 5 log.level = "info" log.maxDays = 3 log.disablePrintColor = true ``` But that also failed.
Author
Owner

@ylluminate commented on GitHub (Jan 12, 2024):

Any clarifications on the above yet? Would like to convert to toml from ini, but it seems I can't sort this out yet.

<!-- gh-comment-id:1888502014 --> @ylluminate commented on GitHub (Jan 12, 2024): Any clarifications on the above yet? Would like to convert to toml from ini, but it seems I can't sort this out yet.
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#3033
No description provided.