Posted on 2006-04-24 11:13
Kylin Bell 阅读(1506)
评论(1) 编辑 收藏 引用
From the opensuse.org Web site:
Quick Setup
* Install vsftpd using YaST software management
* Enable vsftpd in xinetd. This can be done manually by editing /etc/xinetd.d/ and changing disabled = yes to disabled = no, or by using the following command
chkconfig vsftpd on
* Start xinetd if its not running already.
/etc/init.d/xinetd start
* Make sure that xinetd is started automatically at boot time
chkconfig xinetd on
* Check that FTP server is working fine. By default only anonymous login is allowed. Data in /srv/ftp/ is made publicly available.
* If neccessary, adapt firewall settings. With SuSEFirewall2 add ftp to FW_SERVICES_EXT_TCP, e. g. (with SSH reachable from the internet, too)
FW_SERVICES_EXT_TCP="ftp ssh"
* and if you need passive ftp or nat, change also resp.
FW_LOAD_MODULES="ip_conntrack_ftp ip_nat_ftp"
vsftpd具体的配置这里就不多说了,网上有相当多这方面的资料。我遇到的问题是由于SuSEFirewall的设置问题导致FTP服务不能正常访问。
如上,需要在FW_SERVICES_EXT_TCP字段中添加ftp服务,同时要修改FW_LOAD_MODULES段为 FW_LOAD_MODULES="ip_conntrack_ftp ip_nat_ftp"才可以启用passive模式。