fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change the configuration from frpc.ini to frpc.toml

bannyhm opened this issue · comments

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

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.

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

Thank you very much

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