install vsftpd and start it

yum install vsftpd

chkconfig vsftpd on

service vsftpd start

configure wrapper /etc/hosts.allow to allow FTP visiting

vsftpd: 192.168.1.

config iptables to allow FTP visiting

iptables -I INPUT -s 192.168.1.0/24 -p tcp –dport 20 -j ACCEPT

iptables -I INPUT -s 192.168.1.0/24 -p tcp –dport 21 -j ACCEPT

configure /etc/sysconfig/iptables-config to allow dynamic FTP connection

IPTABLES_MODULES="ip_conntrack_netbios_ns ip_conntrack_ftp"

Advertisements