[GH-ISSUE #2726] 使用frp进行winodws3389远程,只有安卓rdclient能够使用 #2178

Closed
opened 2026-05-05 13:24:05 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Wronthyou-Emme on GitHub (Dec 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2726

Bug Description

使用frp进行winodws3389远程,只有安卓rdclient能够使用,win ios 都报错。
在内网环境下(不使用frp)、其他内网穿透工具(如:natapp.cn),没问题。
根据排除法,判断大概率为BUG。

frpc Version

0.38.0

frps Version

0.38.0

System Architecture

windows10/amd64

Configurations

frps:
`
[common]
#==========servicing ports==========
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001

#==========log==========
log_file = /localserver/frp/log.frp/frps.log
log_level = info
log_max_days = 365
disable_log_color = flase

#==========authentication==========
authentication_method = token
token = wronthyou

frpc:[common]
#==========server==========
server_addr = 略
server_port = 7000
#==========log==========
log_file = ./log/frpc.log
log_level = info
log_max_days = 365
disable_log_color = false
#==========token==========
token = wronthyou
#==========proxy==========
[winsRDP--2019-MR-WSY]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 10001
`

Logs

frps日志
2021/12/31 01:06:29 [I] [service.go:447] [7999eaac19048015] client login info: ip [略:37775] version [0.38.0] hostname [] os [windows] arch [amd64] 2021/12/31 01:06:29 [I] [tcp.go:63] [7999eaac19048015] [winsRDP--2019-MR-WSY] tcp proxy listen port [10001] 2021/12/31 01:06:29 [I] [control.go:444] [7999eaac19048015] new proxy [winsRDP--2019-MR-WSY] success 2021/12/31 01:07:27 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37782] 2021/12/31 01:07:27 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37787] 2021/12/31 01:09:35 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37844] 2021/12/31 01:09:35 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37845] 2021/12/31 01:09:39 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37849] 2021/12/31 01:09:40 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37850] 2021/12/31 01:09:53 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37879] 2021/12/31 01:24:34 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10960] 2021/12/31 01:24:34 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10961] 2021/12/31 01:25:42 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10970] 2021/12/31 01:25:42 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10971]
服务端获取到了请求,但是windows自带远程连接报错“出现内部问题”,ios系统RDclient报错“无法连接| 由于出错,你的会话已结束。如果问题仍然存在,请联系网络管理员以寻求帮助。错误代码: 0x4”

Steps to reproduce

如何复现?
1 在公网服务器部署frps,在windows10部署frpc(映射到本机3389,开启远程连接服务)
2 启动服务
3 测试
使用另一台windows电脑使用自带“远程连接”从公网访问,报错
使用IOS系统设备,用RDclient或其他支持RDP协议远控软件从公网访问,报错
使用安装,用RDclient或其他支持RDP协议远控软件从公网访问,正常
4
在被远程windows10 上部署第三方内网穿透软件作为对照住,例如natapp.cn,映射3389,公网访问,上述所有系统都成功。
内网访问,上述所有系统 都成功

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Wronthyou-Emme on GitHub (Dec 30, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2726 ### Bug Description 使用frp进行winodws3389远程,只有安卓rdclient能够使用,win ios 都报错。 在内网环境下(不使用frp)、其他内网穿透工具(如:natapp.cn),没问题。 根据排除法,判断大概率为BUG。 ### frpc Version 0.38.0 ### frps Version 0.38.0 ### System Architecture windows10/amd64 ### Configurations frps: ` [common] #==========servicing ports========== bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7001 # #==========log========== log_file = /localserver/frp/log.frp/frps.log log_level = info log_max_days = 365 disable_log_color = flase # #==========authentication========== authentication_method = token token = wronthyou # ` frpc: `[common] #==========server========== server_addr = 略 server_port = 7000 #==========log========== log_file = ./log/frpc.log log_level = info log_max_days = 365 disable_log_color = false #==========token========== token = wronthyou #==========proxy========== [winsRDP--2019-MR-WSY] type = tcp local_ip = 127.0.0.1 local_port = 3389 remote_port = 10001 ` ### Logs frps日志 `2021/12/31 01:06:29 [I] [service.go:447] [7999eaac19048015] client login info: ip [略:37775] version [0.38.0] hostname [] os [windows] arch [amd64] 2021/12/31 01:06:29 [I] [tcp.go:63] [7999eaac19048015] [winsRDP--2019-MR-WSY] tcp proxy listen port [10001] 2021/12/31 01:06:29 [I] [control.go:444] [7999eaac19048015] new proxy [winsRDP--2019-MR-WSY] success 2021/12/31 01:07:27 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37782] 2021/12/31 01:07:27 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37787] 2021/12/31 01:09:35 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37844] 2021/12/31 01:09:35 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37845] 2021/12/31 01:09:39 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37849] 2021/12/31 01:09:40 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37850] 2021/12/31 01:09:53 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:37879] 2021/12/31 01:24:34 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10960] 2021/12/31 01:24:34 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10961] 2021/12/31 01:25:42 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10970] 2021/12/31 01:25:42 [I] [proxy.go:179] [7999eaac19048015] [winsRDP--2019-MR-WSY] get a user connection [略:10971] ` 服务端获取到了请求,但是windows自带远程连接报错“出现内部问题”,ios系统RDclient报错“无法连接| 由于出错,你的会话已结束。如果问题仍然存在,请联系网络管理员以寻求帮助。错误代码: 0x4” ### Steps to reproduce 如何复现? 1 在公网服务器部署frps,在windows10部署frpc(映射到本机3389,开启远程连接服务) 2 启动服务 3 测试 使用另一台windows电脑使用自带“远程连接”从公网访问,报错 使用IOS系统设备,用RDclient或其他支持RDP协议远控软件从公网访问,报错 使用安装,用RDclient或其他支持RDP协议远控软件从公网访问,正常 4 在被远程windows10 上部署第三方内网穿透软件作为对照住,例如natapp.cn,映射3389,公网访问,上述所有系统都成功。 内网访问,上述所有系统 都成功 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Wronthyou-Emme commented on GitHub (Jan 5, 2022):

这几天排查下来,问题大概率应该出在微软的安全策略(补丁)上。

  1. 内网远程全部正常。
  2. 公网3389远程;winRDP90%不正常、iosRD clinet30%不正常、安卓RD client100%正常。
  3. 被远程主机重装过了。
  4. 使用其他win作为被控端也有类似情况。
<!-- gh-comment-id:1005357585 --> @Wronthyou-Emme commented on GitHub (Jan 5, 2022): 这几天排查下来,问题大概率应该出在微软的安全策略(补丁)上。 1. 内网远程全部正常。 2. 公网3389远程;winRDP90%不正常、iosRD clinet30%不正常、安卓RD client100%正常。 3. 被远程主机重装过了。 4. 使用其他win作为被控端也有类似情况。
Author
Owner

@129duckflew commented on GitHub (Jul 23, 2024):

我也遇到了一样的问题,之前用国内的服务器做穿透是可以正常远程控制的,但是用了香港的服务器就提示内部错误 请问有发现具体是哪个安全设置项目吗

<!-- gh-comment-id:2245406495 --> @129duckflew commented on GitHub (Jul 23, 2024): 我也遇到了一样的问题,之前用国内的服务器做穿透是可以正常远程控制的,但是用了香港的服务器就提示内部错误 请问有发现具体是哪个安全设置项目吗
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#2178
No description provided.