无法远程连接到在CentOS VirtualBox上设置的Vsftpd服务器

我已经使用以下提供的说明设置了Vsftp服务器。甚至在底部的注释之后。 但是我无法远程连接。 当我尝试使用FileZilla或我的Ubuntuterminal时,我总是得到:

ryan@ryan-Galago-UltraPro:~$ ftp 10.0.x.xx ftp: connect: Connection timed out ftp> 

我已经检查并重新检查了iptablesconfiguration文件,并确保端口21被接受,它是。 我已经在网上看了这个,并决定尝试nmap的端口扫描,这就是我得到的结果:

 ryan@ryan-Galago-UltraPro:~$ nmap -PN 10.0.xx.xx Starting Nmap 6.40 ( http://nmap.org ) at 2014-08-19 15:01 EDT Nmap scan report for 10.0.xx.xx Host is up. All 1000 scanned ports on 10.0.xx.xx are filtered Nmap done: 1 IP address (1 host up) scanned in 201.38 seconds 

还有什么我应该做的或检查?

更新:我试图从虚拟机ping到我的IP地址在Ubuntu上,并已成function够。 我无法从Ubuntu上ping到我的虚拟机。 我缩小了这个范围,可能是Ubuntu的一个防火墙相关的问题,但为什么我无法从FileZilla连接?

我不能保证你的错误是因为SE Linux的上下文问题,而是尝试使用下面的命令改变上下文

 chcon -Rt public_content_t /var/ftp/pub 

显示上下文

 ls -Z /var/ftp/pub 

另外如下设置布尔值

 setsebool -p ftp_home_dir 1 setsebool -p allow_ftpd_full_access 1 

毕竟重启服务

 service vsftpd restart