Linux Server Admin Tools and GNU Benchmark Tools Directory, OpenSource Tools

Pureftp On Multiple Ports

Similar to mail server on some occasions there may arise a necessity to run ftp server (running pureftp) to run on multiple ports. Say for example if you want to run your ftp server on both the standard and customized ports (ie…port 21 and 31) you can follow the instructions below to make it work. It also works well on servers running cpanel / plesk / directadmin .

 

Multiple Ports on Pure-ftpd

 

By default when you start pure-ftp, it will be listening on default port 21 on all IPs. If you want to run run pure-ftp on port 31 on IP 192.168.0.1(for example).

 

SSH your server as root :

 

 

Find and replace the lines

 

 

Now we need to copy the start-up script and run with the new config as a separate service.

 

 

Edit the /etc/rc.d/init.d/pure-ftpd-31 to load with the new config.

 

 

Find and replace the lines

 

 

Now start the new service.

 

 

Make sure it starts listening on the new port

 

 

Note : After doing the changes make sure you have added the new ports in the firewall to allow traffic on the new port.