Cpanel Csf Ftp baglantı sorunu

merhaba arkadaslar centos uzerine Whm (cpanel) kurduktan sonra CSF (ConfigServer Security & Firewall) kurulduktan ve tüm ayarlar yapıldıktan sonra hersey tamam diyebilirsiniz ama ftp den herhangi bir hesaptan baglanmaya calıştığınızda Asağıdaki gibi bir hata alırsınız nedeni ise ftp de TSL ayarı acık oldugu için cfs engelleme yapıyor

Komut: CWD /
Yanıt: 250 OK. Current directory is /
Komut: PWD
Yanıt: 257 “/” is your current location
Komut: TYPE I
Yanıt: 200 TYPE is now 8-bit binary
Komut: PASV
Yanıt: 227 Entering Passive Mode (37)
Komut: MLSD
Hata: Connection timed out after 20 seconds of inactivity
Hata: Klasör listesi alınamadı

boyle bir hata alır iseniz yapmanız gereken

cfs nin ayarlarına girip sırasi ile

– Firewall configuration

– TCP_IN kısmına gelip virgül (,) koyarak aşağıdakini yazabilirsiniz

– 30000:51000

yada putty ile

echo “PassivePortRange: 30000 51000″ >> /var/cpanel/conf/pureftpd/main

echo “PassivePortRange 30000 51000″ >> /etc/pure-ftpd.conf
/usr/local/cpanel/scripts/restartsrv_ftpserver
Now we need to open ConfigServer config:

vi /etc/csf/csf.conf
Type this to find TCP_IN line and press i for input:

/TCP_IN

Add ,30000:51000 before last quotation and type :wq to write and quit config file.

It should look like this if You didn’t modified csf.conf earlier:

TCP_IN = “20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:51000″
Now we need to restart csf and lfd:

csf -r restart
service lfd restart