MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Administrator on January 22, 2016, 02:00:54 PM

Title: How To Open Passive Ports in pure-ftpd cPanel Server ?
Post by: Administrator on January 22, 2016, 02:00:54 PM
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.

Quote
TCP_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.