mygentoo etc # cat /etc/xinetd.d/vsftpd # default: off # description: Vsftpd is an FTP server, designed to be secure. # $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.xinetd,v 1.4 2005/06/07 18:34:17 uberlord Exp $ service ftp { socket_type = stream wait = no user = root server = /usr/sbin/vsftpd server_args = /etc/vsftpd/vsftpd.conf log_on_success += DURATION nice = 10 disable = no } mygentoo etc # cat /etc/hosts.allow in.tftpd: 192.168.18.2/128 mygentoo etc # cat /etc/hosts.deny cat: /etc/hosts.deny: 没有那个文件或目录 mygentoo etc # /etc/init.d/xinetd start * Starting xinetd ... [ ok ] mygentoo etc # netstat -tulp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:ftp *:* LISTEN 28280/xinetd tcp 0 0 *:ssh *:* LISTEN 5697/sshd udp 0 0 *:32795 *:* 6144/eva udp 0 0 *:32796 *:* 6144/eva udp 0 0 *:tftp *:* 28280/xinetd mygentoo etc # ps aux|grep ftp root 28285 0.0 0.0 4216 760 pts/1 S+ 18:25 0:00 grep --colour=auto ftp mygentoo etc # mygentoo etc # iptables -L iptables v1.3.8: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. mygentoo etc #