免费注册 查看新帖 |

Chinaunix

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

Fedora Core 9的FTP服务器问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-30 17:38 |只看该作者 |倒序浏览
我在电脑上装了个Fedora Core 9,装了vsftpd的rpm包。vsftpd启动以后,从windows登陆ftp服务器就是连接不上。
windows 和Fedora Core 9的虚拟机可以相互ping通
在虚拟机里面 ftp 127.0.0.1也可以登陆。
谁能帮忙分析下是什么原因啊

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
2 [报告]
发表于 2009-03-30 17:42 |只看该作者
chkconfig --list vsftpd
service vsftpd status
netstat -ntpal | grep :21
iptables -L
cat /etc/selinux/config
把这5个执行完后贴出来,我就告诉你。

论坛徽章:
0
3 [报告]
发表于 2009-03-30 17:55 |只看该作者
[root@localhost ~]# chkconfig --list vsftpd
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@localhost ~]# service vsftpd status
vsftpd (pid 2079) is running...
[root@localhost ~]# netstat -ntpal | grep :21
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      2079/vsftpd         
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
[root@localhost ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#       targeted - Targeted processes are protected,
#       mls - Multi Level Security protection.
SELINUXTYPE=targeted

论坛徽章:
0
4 [报告]
发表于 2009-03-30 18:44 |只看该作者
iptables -F  #清空防火墙规则试试。

论坛徽章:
0
5 [报告]
发表于 2009-03-30 20:15 |只看该作者
多半是防火墙问题

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2009-03-30 20:41 |只看该作者
设置防火墙允许ftp

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
7 [报告]
发表于 2009-03-30 20:56 |只看该作者
setup => firewall => 开启ftp规则
vim /etc/selinux/config
把SELINUX=enforcing
改成
SELINUX=disabled
重启
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP