营销型网站的价格,中英文切换网站,enfold wordpress汉化,许昌网站建设汉狮怎么样我有两个FTP站点#xff1a;A - windows xp下的IIS, B - 虚拟机fedora12下的vsftp#xff0c;都是正常运行的#xff0c;同时这两个站点都允许匿名访问。
在dos下访问A#xff0c;或在fedora12终端下登录B#xff0c;都是成功的。但是在dos下访问B#xff0c;或在fedora…我有两个FTP站点A - windows xp下的IIS, B - 虚拟机fedora12下的vsftp都是正常运行的同时这两个站点都允许匿名访问。
在dos下访问A或在fedora12终端下登录B都是成功的。但是在dos下访问B或在fedora12终端下访问A都是失败的。为什么呢 想来想去不明白因为我的windows xp已经关闭了防火墙而且fedora也已经关闭了selinux。搞到最后原来是fedora12下的防火墙的缘故。
最后把fedora下的防火墙也关了命令如下
[rootvsftpd #70]#service iptables stop iptables清除防火墙规则 [确定] iptables将链设置为政策 ACCEPTfilter [确定] iptables正在卸载模块 [确定]
这样之后就可以成功地登录windows下的ftp-A了同时dos也可以成功地登录fedora12下的B了。看看结果吧
dos登录A
C:\Documents and Settings\zhoucimingftp 192.168.1.102
Connected to 192.168.1.102.
220 (vsFTPd 2.2.2)
User (192.168.1.102:(none)): ftp
331 Please specify the password.
Password:
230 Login successful.
ftp ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
pub
226 Directory send OK.
ftp: 收到 5 字节用时 0.00Seconds 5000.00Kbytes/sec.
ftp dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 May 17 2010 pub
226 Directory send OK.
ftp: 收到 61 字节用时 0.00Seconds 61000.00Kbytes/sec.
ftp close
221 Goodbye.
ftp disconnect
Not connected.
ftp bye fedora12终端下登录ftp-A:
[rootvsftpd #71]#ftp 192.168.1.100
Connected to 192.168.1.100 (192.168.1.100).
220 Microsoft FTP Service
Name (192.168.1.100:root): ftp
331 Anonymous access allowed, send identity (e-mail name) as password.
Password:
230 Anonymous user logged in.
Remote system type is Windows_NT.
ftp ls
227 Entering Passive Mode (192,168,1,100,80,179).
125 Data connection already open; Transfer starting.
06-15-11 10:17PM 280 a.txt
226 Transfer complete.
ftp dir
227 Entering Passive Mode (192,168,1,100,80,180).
125 Data connection already open; Transfer starting.
06-15-11 10:17PM 280 a.txt
226 Transfer complete.
ftp bye
221
[rootvsftpd #72]#
原来linux下的防火墙的服务名是iptables现在才知道慢慢积累吧!