Sunday, September 28, 2014

Install and configure VSFTPD FTP server – RHEL 6 – CentOS 6

1. Install Vsftpd
yum install vsftpd
2. Enable vsftpd service
chkconfig vsftpd on
3. start vsftpd service
service vsftpd start
4. Check ftp port
Netstat –ntl |grep 21
5. Test FTP server access
In the browser enter ftp://IP address of the server. FTP service is running and anonymous access is enabled by default
6. Edit /etc/vsftpd/vsftpd.conf
Disable anonymous access
Anonymous_enable=NO
  • Enable dual logging
Dual_log_enable=YES (This should be put above the ftp port)
Note:- It created /var/log/vsftpd.log file which uses vsftpd log format
  • Enable server time for display of files and directors
Use_localtime=YES
  • Enable local users to log in
          local_enable=YES
  • Enable any form of FTP write command
      write_enable=YES
     7. Open port 21 in Firewall
    # iptables -I INPUT -p tcp --dport 21 --syn -j ACCEPT
    # service iptables save
    # modprobe ip_conntrack_ftp
    # service iptables restart

   

No comments:

Post a Comment