- 因为最近使用ftp上床文件时 老是连接不上 经发现是由于服务器上装的csf(类似于防火墙)服务所致
- Vi /etc/csf/csf.conf
- # Allow incoming TCP ports
- TCP_IN = "20,21,22,25,26,37,53,80,110,143,443,465,807,808,873,888,993,995,1040,1080,1167,2082,2083,2086,2087,2095,2096,2222,2546,3306,5224,6666,8005,8009,8443,8888,9312,9980,9999,10001:10010,19638,22022,32768,30000:50000,58958,58959"
- 修改vsftp的被动模式 默认其使用端口为30000-50000
- rpm -qa | grep vsftpd
- vsftpd-2.0.5-16.el5_5.1
- vi /etc/vsftpd/vsftpd.conf
- pasv_enable=yes
- pasv_min_port=30000
- pasv_max_port=50000
- 然后重启服务就可