- Anonymous Download
- #yum install vsftpd
- #service vsftpd restart
- #chkconfig vsftpd on
- Local User Download
- #getsebool -a | grep ftp
- #setsebool -P ftp_home_dir on
- #yum install ftp
- #ftp localhost/<IP>
- Upload
- #vim /etc/vsftpd/vsftpd.conf
- Line 27, --> Uncomment
- anon_upload_enable=yes
- #mkdir /var/ftp/upload
- #chmod g+w /var/ftp/upload
- #chgrp ftp /var/ftp/upload
- Check the content,
- #ls -ldZ /var/ftp/upload ---> public_content_t
- Change the content
- #chcon -t public_content_rw_t /var/ftp/upload
- Change the boolean
- #getsebool -a | grep ftp
- #setsebool -P allow_ftpd_anon_write on
- #service vsftpd restart
- Verification
- #cd /root
- #ftp localhost/<IP>
- #ls ---> pub & upload
- #cd upload
- #mput install.log
- Iptable Rules
- Clients outside example.com should not have access to your FTP service (IP & subnet will be given)
- #iptables -I INPUT ! -s example.com -p tcp --dport 21 -j REJECT
Wednesday, 4 September 2013
Configuring FTP (Download/Upload)
Labels:
configuring ftp,
ftp,
linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment