mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4618] frpc.toml 配置文件失败 #3645
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Logs
No response
Steps to reproduce
...
Affected area
@xqzr commented on GitHub (Jan 4, 2025):
https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440
@super-fsy commented on GitHub (Jan 5, 2025):
感谢您的回复 我这边试了下指令。


若使用 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"
无法连接成功,个人感觉是frps.toml配置问题
我的frps.toml写在公网机器上 但是个人没有sudo权限,所以配置在个人创建的容器里面
容器配置如下:
同时公网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
期待您的回复
@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.