To install vsftpd in CentOS using yum simply do as root:
yum install vsftpd
To set it to turn on after a reboot:
chkconfig vsftpd on
To set up vsftpd NAT’d behind a firewall use this option in vsftpd.conf: (replace ‘10.20.30.40’ with your actual public ip address)
pasv_address=10.20.30.40
To limit the ephemeral range, use these options in vsftpd.conf:
pasv_min_port=61335
pasv_max_port=65535