mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4061] v0.38.0 连接频繁断线(每50-70秒断连一次) #3208
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#3208
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 @Alive59 on GitHub (Mar 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4061
Bug Description
如题,连接每隔50-70秒就断开一次,然后重新连接上
frpc Version
0.38.0
frps Version
0.38.0
System Architecture
linux/amd64
Configurations
frpc:
[common]
server_addr = xx.xx.xx.xx
server_port = 7000
pool_count = 1
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
frps:
[common]
bind_port = 7000
Logs
frps:
Mar 12 11:31:48 ip-172-30-2-17 frps[1399]: 2024/03/12 11:31:48 [I] [service.go:192] frps tcp listen on 0.0.0.0:7000
Mar 12 11:31:48 ip-172-30-2-17 frps[1399]: 2024/03/12 11:31:48 [I] [root.go:209] frps started successfully
Mar 12 11:31:54 ip-172-30-2-17 frps[1399]: 2024/03/12 11:31:54 [I] [service.go:447] [aa3989a144c001f2] client login info: ip [157.82.128.31:23360] version [0.38.0] hostname [] os [linux] arch [amd64]
Mar 12 11:31:54 ip-172-30-2-17 frps[1399]: 2024/03/12 11:31:54 [I] [tcp.go:63] [aa3989a144c001f2] [ssh] tcp proxy listen port [6000]
Mar 12 11:31:54 ip-172-30-2-17 frps[1399]: 2024/03/12 11:31:54 [I] [control.go:444] [aa3989a144c001f2] new proxy [ssh] success
Mar 12 11:32:45 ip-172-30-2-17 frps[1399]: 2024/03/12 11:32:45 [I] [proxy.go:179] [aa3989a144c001f2] [ssh] get a user connection [157.82.154.130:53248]
Mar 12 11:35:24 ip-172-30-2-17 frps[1399]: 2024/03/12 11:35:24 [I] [control.go:307] [aa3989a144c001f2] control writer is closing
Mar 12 11:35:24 ip-172-30-2-17 frps[1399]: 2024/03/12 11:35:24 [I] [proxy.go:88] [aa3989a144c001f2] [ssh] proxy closing
Mar 12 11:35:24 ip-172-30-2-17 frps[1399]: 2024/03/12 11:35:24 [W] [proxy.go:176] [aa3989a144c001f2] [ssh] listener is closed: accept tcp [::]:6000: use of closed network connection
Mar 12 11:35:24 ip-172-30-2-17 frps[1399]: 2024/03/12 11:35:24 [I] [control.go:382] [aa3989a144c001f2] client exit success
frpc:
重复【try to reconnect / no route to host】直至重新连接
(已确认连接号相同)
备注:已在更高版本(0.53,0.54)测试,出现相同问题
Steps to reproduce
Affected area
@xqzr commented on GitHub (Mar 12, 2024):
无法路由主机。
复现时
ping <frps IP>如果运气好,可以获得很多信息@Alive59 commented on GitHub (Mar 12, 2024):
明白。
确认一下,是在c端ping吗
这种闪断的无法路由,一般会是什么原因呢
@xqzr commented on GitHub (Mar 12, 2024):
是的
可能还需要
ping -O <frps IP>网络问题...需要足够的信息,才可判断
@Alive59 commented on GitHub (Mar 13, 2024):
尝试ping后信息显示
no answer yet for icmp_seq=*
...
from icmp_seq=* Destination Host Unreachable
...
no answer yet for icmp_seq=+1
no answer yet for icmp_seq=+2
如此反复
s端与前文相同
c端主机位于校园网,会不会与这个有关
@xqzr commented on GitHub (Mar 13, 2024):
“目标主机不可达”由谁报告(from ***)?
@Alive59 commented on GitHub (Mar 13, 2024):
此段日志均由c端报告
s端内容与issue一开始的内容一致
@xqzr commented on GitHub (Mar 13, 2024):
from后面没有 IP 地址吗?@Alive59 commented on GitHub (Mar 13, 2024):
内容找不到了...是10.103.xx.xx
应该是局域网?
@xqzr commented on GitHub (Mar 13, 2024):
是局域网 IP 段。
traceroute -I <frps IP>观察10.103.xx.xx和 frps IP 出现的位置@Alive59 commented on GitHub (Mar 14, 2024):
traceroute to (), 64 hops max
1
10.103.x.x
3.903ms
5.030ms 2.737ms
2
10.99.x.x
4.021ms
4.434ms
4.656ms
3
157.82.124.2xx
5.171ms
6.489ms
4.480ms
4
133.11.127.xx
5.519ms
5.219ms
6.284ms
5
150.99.190.xx
5.963ms
5.853ms
6.560ms
6
150.99.11.xx
124.126ms
7.084ms
6.762ms
7
210.171.224.xx
6.970ms
6.313ms
9.395ms
8 - 21 * * *
22 * * 10.103.xx.xx (本地ip)
大概是这样,不太理解具体含义...
@xqzr commented on GitHub (Mar 14, 2024):
1 和 22 IP 地址是否相同?
@Alive59 commented on GitHub (Mar 14, 2024):
并不相同,1是10.103.0.1,像是管理员还是?
@xqzr commented on GitHub (Mar 15, 2024):
不出意外,它是网关(路由器)
看来是,arp 查询不到
10.103.0.1的 MAC 地址...@Alive59 commented on GitHub (Mar 15, 2024):
意思是无法路由?是不是在这个环境下无法使用了
@xqzr commented on GitHub (Mar 15, 2024):
间歇性的网络故障
与 frp 无关
@Alive59 commented on GitHub (Mar 15, 2024):
明白了,可能需要排查一下ubuntu的驱动问题