To install the configuration steps:
RPM -ivh/opt/bak/vsftpd-2.2.2-11.el6.x86_64.rpm - Local installation vsftpd
ll/etc/vsftpd/ -- view vsftpd 's configuration file
There are a total of four configuration files:
Vsftpd.conf is the main configuration file,
Ftpusers is a blacklist user profile, usually our system users and root users are placed in this configuration file, because these users have a large number of permissions, if the use of FTP service may cause some problems,
User_list is a user list file (you can determine whether the user in the User_list file is able to use FTPby configuring the Userlist_deny parameter in configuration file vsftpd.conf. The default value when the parameter is not written is Userlist_deny=yes, which means that users in this user file are not allowed to use ftp.
Vsftpd_conf_migrate. SH Migrates the script for the FTP service.
Ll/var/ftp -- View FTP Shared folders
Useradd -d/var/ftp/test ftpuser -- Create a user to access FTP and specify that the user's FTP directory is /var/ftp/test
passwd ftpuserpwd -- Set password for Ftpuser
Chkconfig--list vsftpd -- view vsftpd boot status
Chkconfig--level 5 vsftpd on -- set multi-User level 5 status on
/etc/init.d/iptables status -- view firewall status
/sbin/iptables-i input-p TCP--dport 21-j ACCEPT -- Add open ftp port
Iptables-a input-p TCP--dport :-M State--state established,related-j ACCEPT -- add rule ftp The connection remains passive access.
/etc/init.d/iptables status -- View firewall status Verify that the rules above are added successfully
/etc/rc.d/init.d/iptables Save - saves the above rules to the iptables configuration file, preventing system restarts from being lost.
Service iptables Restart --Restart firewall
Sestatus -- view SELinux
Setsebool-p allow_ftpd_full_access 1 -- set allow ftp to pass
Setsebool-p Ftp_home_dir on -- set allow ftp to pass
Load FTP extra modules :
Lsmod | grep ftp -- See if the FTP module is loaded
Modprobe ip_nat_ftp -- loading the FTP module
Modprobe ip_conntrack_ftp -- loading the FTP module
VI /etc/sysconfig/iptables-config -- Add the following two lines to prevent system restart FTP module load loss
Iptables_modules= "Ip_conntrack_ftp"
Iptables_modules= "Ip_nat_ftp"
Documentation for reference:
The principle of FTP service and the installation and configuration of VSFPTD
Http://www.cnblogs.com/xiaoluo501395377/archive/2013/06/09/3127899.html
Linux FTP Server Configuration Simple description
Http://www.cnblogs.com/hnrainll/archive/2011/02/16/1956539.html
Configuring Iptables for Open FTP
http://blog.csdn.net/highball/article/details/8521954
Installing and configuring the FTP service under the CentOS system