mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4188] [已解决]请问穿透后连不上filezilla server是什么问题? #3300
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#3300
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 @jjj333 on GitHub (Apr 28, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4188
Bug Description
我的网络情况如下:
电脑A:在电信下运行着frps和frpc,有公网ip
电脑B:是电信下的公司电脑,运行frpc并映射了filezilla server的3个端口(主动模式端口和2个被动模式端口),另外还映射了远程桌面的端口。
filezilla server已该链接说的进行了配置。https://github.com/fatedier/frp/issues/219#issuecomment-514870300
故障为:
用A上的filezilla客户端去连B的服务端,直接就报【尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败】,在B上的filezilla管理界面上看,根本没连上,没有任何日志消息。
但是用A的远程桌面去连B完全没问题。
frpc Version
0.51.3
frps Version
0.54.0
System Architecture
windows/amd64
Configurations
1
Logs
No response
Steps to reproduce
...
Affected area
@jjj333 commented on GitHub (Apr 29, 2024):
补充:
A是我家里的网络,拥有完整控制权,B是公司网络,完全没控制权。今天又做了一下实验,两者的关系对调,filezilla服务端在A,客户端在B,同样的设置也是走不通,连接2、3秒后报"尝试连接“ECONNREFUSED - 连接被服务器拒绝”失败"。然后我把家里路由上的端口打开,就能顺利连接,但这又失去了frp的意义。。。。。。我没有想通的是,为啥ftp不行而远程桌面的rdp是可以的
@jjj333 commented on GitHub (Apr 29, 2024):
问题解决!
其实是frps端口的问题,我在2个frpc上设置的远程端口都不在我在自己的路由上开给frps的端口范围内,所以连不上ftp的本质是连不上frps。。。
这里还有个细节,ftp上的被动模式的端口,必须本地端口和远程端口一直且都在路由上开给frps的端口范围内,否则又是个坑!
@menglinxi commented on GitHub (Jul 17, 2024):
求配置文件,怎么映射多个被动端口?
http://ocdman.github.io/2018/07/17/%E5%80%9F%E5%8A%A9frp%E5%AE%9E%E7%8E%B0ftp%E6%9C%8D%E5%8A%A1%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F/
[range:ftp]
type = tcp
local_ip = 127.0.0.1
local_port = 21,50000-50002
remote_port = 2121,50000-50002
这种配置失效了。
@jjj333 commented on GitHub (Jul 22, 2024):
我就是这么写的,正常没有失效
@menglinxi commented on GitHub (Jul 22, 2024):
你用的是哪个版本的?
@jjj333 commented on GitHub (Jul 23, 2024):
0.59.0
我记得之前某个版本的配置文件格式改过了,从ini改成现在的conf,你看看是不是覆盖安装的,老的ini还在
@weiqi-chen commented on GitHub (Aug 23, 2024):
#4401