vsftp 被动模式

  
  
  
  
  1. 因为最近使用ftp上床文件时 老是连接不上 经发现是由于服务器上装的csf(类似于防火墙)服务所致 
  2. Vi /etc/csf/csf.conf 
  3. # Allow incoming TCP ports 
  4. 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" 
  5.  
  6. 修改vsftp的被动模式 默认其使用端口为30000-50000 
  7.  
  8. rpm -qa | grep vsftpd 
  9. vsftpd-2.0.5-16.el5_5.1 
  10.  
  11. vi /etc/vsftpd/vsftpd.conf 
  12. pasv_enable=yes 
  13. pasv_min_port=30000 
  14. pasv_max_port=50000 
  15.  
  16. 然后重启服务就可 

 

你可能感兴趣的:(职场,vsftp,被动模式,休闲)