1. selinux 설정을 확인해 본다
[code]
# sudo getsebool -a | grep ftp
ftpd_anon_write –> off
ftpd_connect_all_unreserved –> off
ftpd_connect_db –> off
ftpd_full_access –> off
ftpd_use_cifs –> off
ftpd_use_fusefs –> off
ftpd_use_nfs –> off
ftpd_use_passive_mode –> off
httpd_can_connect_ftp –> off
httpd_enable_ftp_server –> off
tftp_anon_write –> off
tftp_home_dir –> off
[/code]
ftpd_full_access 와 ftpd_use_passive_mode 를 on 으로 처리해준다
[code]
# sudo setsebool -P ftpd_full_access 1
# sudo setsebool -P ftpd_use_passive_mode 1
# sudo getsebool -a | grep ftp
ftpd_anon_write –> off
ftpd_connect_all_unreserved –> off
ftpd_connect_db –> off
ftpd_full_access –> on
ftpd_use_cifs –> off
ftpd_use_fusefs –> off
ftpd_use_nfs –> off
ftpd_use_passive_mode –> on
httpd_can_connect_ftp –> off
httpd_enable_ftp_server –> off
tftp_anon_write –> off
tftp_home_dir –> off
[/code]
2. vsftpd.conf 수정
: pasv 관련 설정을 변경하거나 없으면 추가한다.
[code]
# vi /etc/vsftpd/vsftpd.conf
#포트범위는 변경가능
pasv_enable=YES
pasv_min_port=6000
pasv_max_port=6100
[/code]