[GH-ISSUE #4178] How to change the configuration from frpc.ini to frpc.toml #3292

Closed
opened 2026-05-05 14:07:28 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @bannyhm on GitHub (Apr 22, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4178

Describe the feature request

the following configuration is in fprc.ini, how can I fix it so that it works correctly in frpc.toml

[common]
forward_all = tcp+udp
all_use_encryption = false
all_use_compression = false
server_addr = x.x.x.x
server_port = 9100
plugin_user = abc
plugin_passwd = abc
authentication_method = token
token = 12345678
dns_server = x.x.x.x

udp_forward = true

[web_tcp]
type = tcp
local_ip = 127.0.0.1
local_port = 6000
remote_port = 6000
use_encryption = false
use_compression = false
protocol = tcp

[web_udp]
type = udp
local_ip = 127.0.0.1
local_port = 6000
remote_port = 6000
use_encryption = false
use_compression = false
protocol = udp

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @bannyhm on GitHub (Apr 22, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4178 ### Describe the feature request the following configuration is in fprc.ini, how can I fix it so that it works correctly in frpc.toml [common] forward_all = tcp+udp all_use_encryption = false all_use_compression = false server_addr = x.x.x.x server_port = 9100 plugin_user = abc plugin_passwd = abc authentication_method = token token = 12345678 dns_server = x.x.x.x udp_forward = true [web_tcp] type = tcp local_ip = 127.0.0.1 local_port = 6000 remote_port = 6000 use_encryption = false use_compression = false protocol = tcp [web_udp] type = udp local_ip = 127.0.0.1 local_port = 6000 remote_port = 6000 use_encryption = false use_compression = false protocol = udp ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
gitea-mirror 2026-05-05 14:07:28 -06:00
Author
Owner

@fatedier commented on GitHub (Apr 23, 2024):

You can continue to use the INI format configuration file until you have new feature requirements, then rewrite the TOML format configuration file according to the document.

<!-- gh-comment-id:2071297429 --> @fatedier commented on GitHub (Apr 23, 2024): You can continue to use the INI format configuration file until you have new feature requirements, then rewrite the TOML format configuration file according to the document.
Author
Owner

@bannyhm commented on GitHub (Apr 23, 2024):

Thank you for your reply. I'm trying to upgrade from version 51.3 to version 57.0, but as I see from the documentation and frpc-full example files, I can't find an example to use a udp connection. Or can I just convert my frpc.ini lines to frpc.toml format by changing the field names as stated in the documentation and enclosing the line values ​​in " "?
My frpc.ini settings with version 51.3 work perfectly, except for problems with already exists

<!-- gh-comment-id:2071604226 --> @bannyhm commented on GitHub (Apr 23, 2024): Thank you for your reply. I'm trying to upgrade from version 51.3 to version 57.0, but as I see from the documentation and frpc-full example files, I can't find an example to use a udp connection. Or can I just convert my frpc.ini lines to frpc.toml format by changing the field names as stated in the documentation and enclosing the line values ​​in " "? My frpc.ini settings with version 51.3 work perfectly, except for problems with already exists
Author
Owner

@xqzr commented on GitHub (Apr 25, 2024):

#3818

<!-- gh-comment-id:2078010100 --> @xqzr commented on GitHub (Apr 25, 2024): #3818
Author
Owner

@bannyhm commented on GitHub (Apr 26, 2024):

Thank you very much

<!-- gh-comment-id:2078707939 --> @bannyhm commented on GitHub (Apr 26, 2024): Thank you very much
Author
Owner

@github-actions[bot] commented on GitHub (May 18, 2024):

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:2118528224 --> @github-actions[bot] commented on GitHub (May 18, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#3292
No description provided.