mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1949] XTCP: read nat hole client ok package error: EOF #1549
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#1549
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 @simonchen on GitHub (Aug 20, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1949
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
frp_0.33.0_linux_amd64
What operating system and processor architecture are you using (
go env)?Server: frp_0.33.0_linux_amd64
Client: MT7621 mipsle
Configures you used:
Server:
[common]
bind_port = 7000
kcp_bind_port = 7000
bind_udp_port = 7100
authentication_method = token
token = 1234
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = newart
max_pool_count = 50
log_file = /root/frp_0.33.0_linux_amd64/frps.log
ClientA:
[common]
server_addr = {public i/p address}
server_port = 7000
authentication_method = token
token = 1234
[p2p_ssh]
type = xtcp
sk = 1234
local_ip = 192.168.123.1
local_port = 22
ClientB:
[common]
server_addr = {public i/p address}
server_port = 7000
authentication_method = token
token = schmap1221
[p2p_ssh_visitor]
type = xtcp
role = visitor
server_name = p2p_ssh
sk = 1234
bind_addr = 192.168.123.1
bind_port = 1022
Steps to reproduce the issue:
ssh admin@192.168.123.1 -p 1022Describe the results you received:
ClientB路由器上显示连接失败:
ssh: Connection to admin@192.168.123.1:1022 exited: Remote closed the connection
Server的日志显示:
[xtcp.go:66] [0dc28761da4c8ecd] [p2p_ssh] read nat hole client ok package error: EOF
[xtcp.go:66] [0dc28761da4c8ecd] [p2p_ssh] read nat hole client ok package error: EOF
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@Becods commented on GitHub (Aug 20, 2020):
排版有点难看
https://github.com/fatedier/frp/issues/1129
@simonchen commented on GitHub (Aug 23, 2020):
Nobody knows how to resolve this issue?
@simonchen commented on GitHub (Aug 25, 2020):
this doesn't help
@simonchen commented on GitHub (Aug 26, 2020):
我认为这个日志明显的定位在xtcp.go第66行:
https://github.com/fatedier/frp/blob/dev/server/proxy/xtcp.go
` go func() {
raw, errRet := msg.ReadMsg(workConn)
if errRet != nil {
xl.Warn("read nat hole client ok package error: %v", errRet)
workConn.Close()
return
}
if _, ok := raw.(*msg.NatHoleClientDetectOK); !ok {
xl.Warn("read nat hole client ok package format error")
workConn.Close()
return
}
`
@github-actions[bot] commented on GitHub (Oct 11, 2020):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.