|
我在内网的一台机器上安装了一个proftpd,我已经将路由器上21端口映射到这台机器上了,同时也开启了触发配置,将由21端口触发的所有连接端口限制到49152-65534之间,我们的路由器是TL-R410。现在出现了两个问题:
1)不管在内网还是外网,使用flashfxp连接被动模式连接不上。
flashfxp的状态反馈为:
PASV
227 Entering Passive Mode (212,118,7,202,197,152)
正在打开数据连接 IP: 212.118.7.202 端口: 50584
数据 Socket 错误: 连接已超时
列表错误
2)不管在内网还是外网,用flashfxp主动模式都能链接上,但是传输一段时间(大约1分多钟)速度就变为零,过一段时间(大约3分钟)自动断开重连。日志见下面。
请问各位高手以上两个问题如何解决。
配置文件如下,这都是我改动过的地方,未改动的地方未贴出。
AllowForeignAddress on
DefaultRoot /media/disk/ftp ftpgroup
<Limit LOGIN>
AllowUser a0914
</Limit>
RequireValidShell off
Port 21
PassivePorts 49152 65534
MasqueradeAddress 212.118.7.202
User nobody
Group nobody
proftpd日志文件如下:
Feb 23 16:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): FTP session opened.
Feb 23 16:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): user a0914 authenticated by mod_auth_pam.c
Feb 23 16:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): USER a0914: Login successful.
Feb 23 08:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): Preparing to chroot to directory '/media/disk/ftp'
Feb 23 08:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): Environment successfully chroot()ed.
Feb 23 08:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): unable to chdir to /home/a0914 (No such file or director
y), defaulting to chroot directory /media/disk/ftp
Feb 23 08:17:10 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
Feb 23 08:20:01 k-ubuntu proftpd[13873] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): using sendfile capability for transmitting data
Feb 23 08:22:52 k-ubuntu proftpd[12116] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff:212.118.7.202]): FTP no transfer timeout, disconnected
Feb 23 08:22:52 k-ubuntu proftpd[12116] k-ubuntu.domain (::ffff: 212.118.7.202[:
:ffff: 212.118.7.202]): FTP session closed. |
|