[GH-ISSUE #4618] frpc.toml 配置文件失败 #3645

Closed
opened 2026-05-05 14:20:24 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @super-fsy on GitHub (Jan 3, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4618

Bug Description

(公网ip)服务器 A :docker_container 中的 frpc.toml
bindport = 14108
frpc.toml:
serverAddr = "x, x, x, x"
serverPort = 14108
(内网ip)服务器 B :frps.toml
proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

frpc Version

frp_0.61.1

frps Version

frp_0.61.1

System Architecture

linux/amd64

Configurations

./frps -c frps.toml ok

image ./frpc -c frpc.toml always error image

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 @super-fsy on GitHub (Jan 3, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4618 ### Bug Description (公网ip)服务器 A :docker_container 中的 frpc.toml bindport = 14108 frpc.toml: serverAddr = "x, x, x, x" serverPort = 14108 (内网ip)服务器 B :frps.toml [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ### frpc Version frp_0.61.1 ### frps Version frp_0.61.1 ### System Architecture linux/amd64 ### Configurations ./frps -c frps.toml ok <img width="383" alt="image" src="https://github.com/user-attachments/assets/4bb619c5-596f-4f90-ad8c-634b655718c3" /> ./frpc -c frpc.toml always error <img width="557" alt="image" src="https://github.com/user-attachments/assets/a1cf59d0-1e53-41b7-bc6b-86101f0e8e24" /> ### 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
gitea-mirror 2026-05-05 14:20:24 -06:00
Author
Owner
<!-- gh-comment-id:2570881905 --> @xqzr commented on GitHub (Jan 4, 2025): https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440
Author
Owner

@super-fsy commented on GitHub (Jan 5, 2025):

#3778 (comment)

感谢您的回复 我这边试了下指令。
若使用 serverAddr=""
login to the server failed: dial tcp: lookup <x.x.x.x>: no such host. With loginFailExit enabled, no additional retries will be attempted
增加一行 transport.protocol="quic"
image
无法连接成功,个人感觉是frps.toml配置问题
我的frps.toml写在公网机器上 但是个人没有sudo权限,所以配置在个人创建的容器里面
容器配置如下:
image
同时公网ip机器只有一个端口是对外暴露 例如14108
所以连接公网机器可通过 ssh 用户名@x.x.x.x -p 14108 ,别的端口均未开放
求问如何配置容器里frps.toml
当前 frps.toml
bindport = 14108 # 监听端口,内网穿透通信的入口
auth.token = "581038" # 认证令牌

下面是frpc.toml
serverAddr = "x.x.x.x" # 公网机器的IP地址
serverPort = 14108 # 公网机器的 frps 服务监听端口
auth.token = "581038"
transport.protocol="quic"

proxies
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
期待您的回复

<!-- gh-comment-id:2571656073 --> @super-fsy commented on GitHub (Jan 5, 2025): > [#3778 (comment)](https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440) 感谢您的回复 我这边试了下指令。 若使用 serverAddr="<server IP>" login to the server failed: dial tcp: lookup &lt;x.x.x.x>: no such host. With loginFailExit enabled, no additional retries will be attempted 增加一行 transport.protocol="quic" <img width="486" alt="image" src="https://github.com/user-attachments/assets/10413219-0ad3-45e4-b3a2-8af93b3dbf99" /> 无法连接成功,个人感觉是frps.toml配置问题 我的frps.toml写在公网机器上 但是个人没有sudo权限,所以配置在个人创建的容器里面 容器配置如下: <img width="384" alt="image" src="https://github.com/user-attachments/assets/1e47965d-d56c-4575-8248-1daf5bbbae7d" /> 同时公网ip机器只有一个端口是对外暴露 例如14108 所以连接公网机器可通过 ssh 用户名@x.x.x.x -p 14108 ,别的端口均未开放 求问如何配置容器里frps.toml 当前 frps.toml bindport = 14108 # 监听端口,内网穿透通信的入口 auth.token = "581038" # 认证令牌 下面是frpc.toml serverAddr = "x.x.x.x" # 公网机器的IP地址 serverPort = 14108 # 公网机器的 frps 服务监听端口 auth.token = "581038" transport.protocol="quic" [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 期待您的回复
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2025):

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

<!-- gh-comment-id:2601104354 --> @github-actions[bot] commented on GitHub (Jan 20, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3645
No description provided.