Solve FTP Issue In WHM/Cpanel/DirectAdmin/InterWorx/CentOS Web Panel (CWP)/VestaCP/CyberPanel/Webmin With CSF

Installing a Firewall (eg: Config Security Firewall/CSF) is one step to hardening security of your webserver. But this come with an issue that CSF block PureFTPd/ProFTPd server, so your FTP client cannot connect to FTP server with passive mode. This is because CSF block the passive connection ports. To enable it you need set the ip range for passive connection, and make sure you are not block it from CSF.

To do that, you need to edit your FTP server configuration.

For PureFTPd:
open /etc/pure-ftpd.conf, and enable this line:

PassivePortRange    30000 35000

For ProFTPd:
open /etc/pure-ftpd.conf, and enable this line:

PassivePorts    30000 35000

Now you need to unblock that port range from CSF. Open CSF Firewall configuration from your WHM, and add that ports in TCP_IN, so it would like this:
TCP_IN: 20,21,22,25,53,80,110,143,443,30000:35000

Now restart both your CSF and FTP server. And once it done, you will able to connect to your FTP server with passive mode

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What virtualization software do you use?

We use Parallels Virtuozzo Containers (PVC).

Why is my VPS constantly crashing?

There are several causes to why you may not be able to access your VPS. Some users often mistake...

What kind of support do you offer?

We offer Fully Managed VPS packages. For a list of items that we support, please refer to the...

What kind of software can I install on my VPS?

As you have full root access, you may install any compatible software on your VPS. However, any...

What is Virtuozzo?

Virtuozzo is the VPS technology created by SWsoft which allow us to create isolated VPS servers...