How To Open Passive Ports in pure-ftpd cPanel Server ?

Started by Administrator, January 22, 2016, 02:00:54 PM

Previous topic - Next topic

Administrator

Hi All,

When trying to upload the files via FileManager, you might receive errors related to directory listing. It is because passive ports are not enabled in pure-ftpd and server's firewall. Let's know how to enable the Passive Ports and open then in server firewall.

Open pure-ftpd file.

Quote# vi /etc/pure-ftpd.conf

Find for PassivePortRange and uncommend the line. Simply, remove the # just before PassivePortRange. Restart the pure-ftpd service.

Quote# /etc/init.d/pure-ftpd restart

Now, let's open the ports in server's csf (config server firewall) firewall.

Quote# vi /etc/csf/csf.conf

Find for TCP_IN and at the end of line, enter the port range 30000:50000. It should look like as below.

QuoteTCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:50000"

Save the file and quit. Restart csf firewall.

Quote# csf -r

Directory listing should be enabled now.
MilesWeb - Your Hosting, Our Responsibility!
Buy Web Hosting Plans | Managed VPS with 50% Discount