
05-29-11, 21:25
|
|
BOD Member
|
|
Join Date: Jun 2010
Posts: 175
|
|
Enabling passive FTP
Enabling passive FTP
It is always recommended to enable passive mode for FTP if we are using Pureftp/Proftp with a CSF firewall because we might face problems like unresponsive ftp server or it just gets stuck or it amy even stop listing the directories. In order to avoid all such things we just need to execute the following commands on our server.
Open the Pure-FTPd configuration file by executing following command
vi /etc/pure-ftpd.conf
Then uncomment the following line
PassivePortRange 30000 35000
Restart Pure-FTPd
service pure-ftpd restart
Then edit CSF firewall's configuration file by executing following command
# vi /etc/csf/csf.conf
Once it is done and add the ports as below.
# Allow incoming TCP ports
TCP_IN = “20,21,22,25,53,80,110,30000:35000″
Finally restart csf and ftp services
# service csf restart
OR
# csf -r
# service pureftpd restart
__________________
Carol.P
|