LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1570|回复: 12

adsl内网架FTP器的问题

[复制链接]
发表于 2006-4-24 11:01:29 | 显示全部楼层 |阅读模式
一mt800adsl 内网。一内网机子vsftpd2.0.1,PSAV。
listen_port=60021
pasv_enable=YES
pasv_min_port=60022
pasv_max_port=60032
mt800adsl nat 60021 60022_60032 ---->内网ftp上,
1)另一内网电脑通过  内网  地址能上FTP服务器
    内网电脑通过  外网  地址不能上FTP服务器
   是mt800设置的原因吗?????
2)外 网电脑通过  mt800adsl 外网地址上FTP服务器时:打不开文件夹
cat vsftpd.log:
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,128)"
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)"
什么问题????
 楼主| 发表于 2006-4-25 09:07:27 | 显示全部楼层
是我没说清吗?????????
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-25 09:08:14 | 显示全部楼层
是我没说清吗?????????
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-27 21:45:03 | 显示全部楼层
换了两种宽猫。511E还不如MT800
???????
回复 支持 反对

使用道具 举报

发表于 2006-4-28 17:31:14 | 显示全部楼层
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)"

后边的东西呢?。。。你试试 active 模式是否可以?
回复 支持 反对

使用道具 举报

发表于 2006-4-28 22:08:22 | 显示全部楼层
1 猫上打开 外网21口-〉内网21口的映射。和高端口的映射。最好是dmz主机。
2 猫上打开upnp。
回复 支持 反对

使用道具 举报

发表于 2006-4-28 23:59:49 | 显示全部楼层
mt800是viking蕊片的吗?

如果是继续,最简单的是使用modem内置的ZIPB桥接模式,将你的机器设成DHCP模式就能简单的应用很多网络服务。查找关键词ZIPB
Quick Set-Up guide covering Solwise-270303 & 170603
http://www.solwise.co.uk/downloads/downloads-archive.htm#SAR110
http://www.solwiseforum.co.uk/do ... etup-versolwise.pdf

如果用路由模式

先映射网络端口tcp20 tcp21 tcp pasv:port
How to add NAT rules
http://www.sarguide.co.uk/nat.php

如果你应用了IP过滤规则,
将Private Default Action:  设为 ACCEPT不然无法访问内网服务。当然也得检查一下端口是否设定在过滤规则内。

其它的就是路由模式下你无法在你的内网来访问你的主机,当然ZIPB之类的桥接模式除外。验证可以使用googlekeyword web online ftp login
http://www.web2ftp.com/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-29 09:12:02 | 显示全部楼层
"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)"

后边的东西呢?。。。你试试 active 模式是否可以?"
终极幻想:只有这些记录,我理解的是,只有60021端口映射成功,外网可以登录,但客户
         数据口与内网FTP服务器。连接不上,所致!!!!
         active模式应该可以,下一步会实验的、、、
-----------------------------------------------------------------
1) 猫上打开 外网21口-〉内网21口的映射。和高端口的映射。最好是dmz主机。
2 猫上打开upnp
aleng:设成DMZ与直接NAT都一样;只是MT800不支持UPNP,我分析一样不成!
还是先谢谢各位,希望与大家一同分析、、、、、、、
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-29 09:35:50 | 显示全部楼层
Post by dato
mt800
吗?

如果是继续,最简单的是使用modem内置的ZIPB桥接模式,将你的机器设成DHCP模式就能简单的应用很多网络服务。查找关键词ZIPB
Quick Set-Up guide covering Solwise-270303 & 170603
http://www.solwise.co.uk/downloads/downloads-archive.htm#SAR110
http://www.solwiseforum.co.uk/do ... etup-versolwise.pdf

如果用路由模式

先映射网络端口tcp20 tcp21 tcp pasv:port
How to add NAT rules
http://www.sarguide.co.uk/nat.php

如果你应用了IP过滤规则,
将Private Default Action:  设为 ACCEPT不然无法访问内网服务。当然也得检查一下端口是否设定在过滤规则内。

其它的就是路由模式下你无法在你的内网来访问你的主机,当然ZIPB之类的桥接模式除外。验证可以使用googlekeyword web online ftp login
http://www.web2ftp.com/


是viking蕊片的!
SAR110?与MT800差不多吧,桥接,还得电脑拨号,不打算用。哈哈
路由模式下。为什么还要开20.21????????
http://www.web2ftp.com/这个的确不错,真是谢谢你,[/url]
回复 支持 反对

使用道具 举报

发表于 2006-4-29 16:58:03 | 显示全部楼层
ZIPB仍然是使用modem内置拔号获得的广域网IP,无需软拔号,如果有多个PPP拔号就可以让网内的多台机器获得广域网IP,其它的仍然可以走路由。不过如果有端口添加给NAT(给路由用的),都要删除

viking蕊片是用过的ADSL MODEM功能最齐全的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表