免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3651 | 回复: 7
打印 上一主题 下一主题

[FTP] 内网架设FTP服务器的问题?(理解中) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-24 10:35 |只看该作者 |倒序浏览
centos4.3  vsftpd2.0.1
mt800 adsl猫,NAT 60021──60032 到内网FTP192.168.1.5:60021机子上,(mt800与FTP机子防火墙都关了)被动 模式PASV
pam_service_name=myftp
guest_enable=YES
guest_username=ftpuser
user_config_dir=/etc/vsftpd_user_conf
userlist_enable=NO
#enable for standalone mode
listen=YES
tcp_wrappers=YES
listen_port=60021
pasv_enable=YES
pasv_min_port=60022
pasv_max_port=60032
max_clients=20
本机ftp localhost 60021 好使
1)另一局内机子 :192.168.1.3 ──》192.168.168.5:60021 OK!
               192.168.1.3──》MT800INTERNET外网地址:60021            
                                                        NO!
                 连接拒绝,估计是 adsl猫没设置好吧???用IP过滤                    
                  设置吗??/
2)用外网INTERNET一台机子:──》 MT800INTERNET外网地址:60021
   用的是浏览器打开的,好像能上来了,就是打不开文件夹?/
cat vsftpd.log:
Mon Apr 24 10:00:11 2006 [pid 3700] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:11 2006 [pid 3700] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:15 2006 [pid 3700] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:15 2006 [pid 3700] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:17 2006 [pid 3700] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:19 2006 [pid 3699] [wqftp] FAIL LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:19 2006 [pid 3700] [wqftp] FTP response: Client "218.62.100.150", "530 Login incorrect."
Mon Apr 24 10:00:22 2006 [pid 3705] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:22 2006 [pid 3705] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:22 2006 [pid 3705] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:22 2006 [pid 3705] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:23 2006 [pid 3705] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:26 2006 [pid 3704] [wqftp] FAIL LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:26 2006 [pid 3705] [wqftp] FTP response: Client "218.62.100.150", "530 Login incorrect."
Mon Apr 24 10:00:30 2006 [pid 3708] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:30 2006 [pid 3708] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:31 2006 [pid 3708] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:31 2006 [pid 3708] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:33 2006 [pid 3708] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:36 2006 [pid 3707] [wqftp] FAIL LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:36 2006 [pid 3708] [wqftp] FTP response: Client "218.62.100.150", "530 Login incorrect."
Mon Apr 24 10:00:46 2006 [pid 3712] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:46 2006 [pid 3712] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:47 2006 [pid 3712] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:47 2006 [pid 3712] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:47 2006 [pid 3712] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:48 2006 [pid 3711] [wqftp] OK LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:48 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "230-???????????????WQCBS FTP???"
Mon Apr 24 10:00:48 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "230-?????????????????????,???????????????????????????????????????!!!"
Mon Apr 24 10:00:48 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "230-????????????!!!!"
Mon Apr 24 10:00:48 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "230-"
Mon Apr 24 10:00:48 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "230 Login successful."
Mon Apr 24 10:00:49 2006 [pid 3715] [wqftp] FTP command: Client "218.62.100.150", "OPTS utf8 on"
Mon Apr 24 10:00:49 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "501 Option not understood."
Mon Apr 24 10:00:49 2006 [pid 3715] [wqftp] FTP command: Client "218.62.100.150", "SYST"
Mon Apr 24 10:00:49 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "215 UNIX Type: L8"
Mon Apr 24 10:00:50 2006 [pid 3715] [wqftp] FTP command: Client "218.62.100.150", "SITE help"
Mon Apr 24 10:00:50 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "550 Permission denied."
Mon Apr 24 10:00:51 2006 [pid 3717] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:51 2006 [pid 3717] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:51 2006 [pid 3715] [wqftp] FTP command: Client "218.62.100.150", "WD"
Mon Apr 24 10:00:51 2006 [pid 3715] [wqftp] FTP response: Client "218.62.100.150", "257 "/""
Mon Apr 24 10:00:52 2006 [pid 3717] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:52 2006 [pid 3717] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:53 2006 [pid 3717] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:54 2006 [pid 3720] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:00:54 2006 [pid 3720] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:00:55 2006 [pid 3720] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:00:55 2006 [pid 3720] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:00:55 2006 [pid 3716] [wqftp] FAIL LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:55 2006 [pid 3717] [wqftp] FTP response: Client "218.62.100.150", "530 Login incorrect."
Mon Apr 24 10:00:56 2006 [pid 3720] [wqftp] FTP command: Client "218.62.100.150", "ASS <password>"
Mon Apr 24 10:00:56 2006 [pid 3719] [wqftp] OK LOGIN: Client "218.62.100.150"
Mon Apr 24 10:00:56 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "230-???????????????WQCBS FTP???"
Mon Apr 24 10:00:56 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "230-?????????????????????,???????????????????????????????????????!!!"
Mon Apr 24 10:00:56 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "230-????????????!!!!"
Mon Apr 24 10:00:56 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "230-"
Mon Apr 24 10:00:56 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "230 Login successful."
Mon Apr 24 10:01:03 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "OPTS utf8 on"
Mon Apr 24 10:01:03 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "501 Option not understood."
Mon Apr 24 10:01:04 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "SYST"
Mon Apr 24 10:01:04 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "215 UNIX Type: L8"
Mon Apr 24 10:01:05 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "SITE help"
Mon Apr 24 10:01:05 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "550 Permission denied."
Mon Apr 24 10:01:06 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "WD"
Mon Apr 24 10:01:06 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "257 "/""
Mon Apr 24 10:01:08 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:01:08 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:01:08 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "ASV"
Mon Apr 24 10:01:08 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,12"
Mon Apr 24 10:01:39 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "NOOP"
Mon Apr 24 10:01:39 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "200 NOOP ok."
Mon Apr 24 10:01:41 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:01:41 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:01:42 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:01:42 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:01:43 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "ASV"
Mon Apr 24 10:01:43 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,127)"
Mon Apr 24 10:03:14 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "NOOP"
Mon Apr 24 10:03:14 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "200 NOOP ok."
Mon Apr 24 10:03:15 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:03:15 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:03:17 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:03:17 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:03:19 2006 [pid 3723] [wqftp] FTP command: Client "218.62.100.150", "PASV"
Mon Apr 24 10:03:19 2006 [pid 3723] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,127)"
Mon Apr 24 10:04:14 2006 [pid 3757] CONNECT: Client "218.62.100.150"
Mon Apr 24 10:04:14 2006 [pid 3757] FTP response: Client "218.62.100.150", "220 (vsFTPd 2.0.1)"
Mon Apr 24 10:04:15 2006 [pid 3757] FTP command: Client "218.62.100.150", "USER wqftp"
Mon Apr 24 10:04:15 2006 [pid 3757] [wqftp] FTP response: Client "218.62.100.150", "331 Please specify the password."
Mon Apr 24 10:04:16 2006 [pid 3757] [wqftp] FTP command: Client "218.62.100.150", "PASS <password>"
Mon Apr 24 10:04:16 2006 [pid 3756] [wqftp] OK LOGIN: Client "218.62.100.150"
Mon Apr 24 10:04:16 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "230-???????????????WQCBS FTP???"
Mon Apr 24 10:04:16 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "230-?????????????????????,???????????????????????????????????????!!!"
Mon Apr 24 10:04:16 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "230-????????????!!!!"
Mon Apr 24 10:04:16 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "230-"
Mon Apr 24 10:04:16 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "230 Login successful."
Mon Apr 24 10:04:18 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "OPTS utf8 on"
Mon Apr 24 10:04:18 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "501 Option not understood."
Mon Apr 24 10:04:19 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "PWD"
Mon Apr 24 10:04:19 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "257 "/""
Mon Apr 24 10:04:20 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:04:20 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:04:21 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:04:21 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:04:22 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "PASV"
Mon Apr 24 10:04:22 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,125)"
Mon Apr 24 10:05:01 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "NOOP"
Mon Apr 24 10:05:01 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 NOOP ok."
Mon Apr 24 10:05:01 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:05:01 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:05:06 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:05:06 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:05:07 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "PASV"
Mon Apr 24 10:05:07 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,120)"
Mon Apr 24 10:05:39 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "NOOP"
Mon Apr 24 10:05:39 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 NOOP ok."
Mon Apr 24 10:05:40 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:05:40 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:05:42 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:05:42 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:05:44 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "PASV"
Mon Apr 24 10:05:44 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,121)"
Mon Apr 24 10:06:59 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "NOOP"
Mon Apr 24 10:06:59 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 NOOP ok."
Mon Apr 24 10:07:00 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "CWD /"
Mon Apr 24 10:07:00 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "250 Directory successfully changed."
Mon Apr 24 10:07:01 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "TYPE A"
Mon Apr 24 10:07:01 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "200 Switching to ASCII mode."
Mon Apr 24 10:07:02 2006 [pid 3760] [wqftp] FTP command: Client "218.62.100.150", "PASV"
Mon Apr 24 10:07:02 2006 [pid 3760] [wqftp] FTP response: Client "218.62.100.150", "227 Entering Passive Mode (192,168,168,5,234,126)"
?????????
能给指点一下,解决这两个问题吗??

[ 本帖最后由 权老实 于 2006-5-15 10:26 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-04-24 21:23 |只看该作者
朋友们细心给看一下吧,???????

论坛徽章:
0
3 [报告]
发表于 2006-04-24 21:29 |只看该作者
试试设置pasv_address为你ftp对应的外部ip
不过这样内网可能无法用passvie方式了

论坛徽章:
0
4 [报告]
发表于 2006-04-24 21:42 |只看该作者
原帖由 wolfg 于 2006-4-24 21:29 发表
试试设置pasv_address为你ftp对应的外部ip
不过这样内网可能无法用passvie方式了


试了,也是不成!
认为是ADSL猫的可能性大些吧、、、、

论坛徽章:
0
5 [报告]
发表于 2006-04-24 21:44 |只看该作者
原帖由 权老实 于 2006-4-24 21:42 发表


试了,也是不成!
认为是ADSL猫的可能性大些吧、、、、


应该是猫的设置问题,这方面不在行了,lz可以去网络与硬件版问问

论坛徽章:
0
6 [报告]
发表于 2006-04-24 21:46 |只看该作者
好快呀,wolfg !
谢谢,这就去求解!

论坛徽章:
0
7 [报告]
发表于 2006-05-15 10:25 |只看该作者
弄了好久,基本上明白了些,ADSL猫没有这纯路由功能,不可以在内网用外网IP再访问回内网的服务器的.(路由器可以)
且.ADSL猫不支持FTP的PASV模式!!!
希望大家也别在浪费时间了..........

论坛徽章:
0
8 [报告]
发表于 2006-05-20 22:46 |只看该作者
也不是所有的ADSL猫都不支持,华为MT800是不支持的。我的也是MT800,每次需要做试验的时候,都是登录到远程机器,在远程机器上面进行试验。

另外,ADSL猫不支持FTP的PASV模式是什么意思?我的就是PASV模式。访问都很正常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP