Posted by HostingFields, 06-06-2010, 04:12 AM | Hello,
Is it possible to run pure-ftpd on multi ports on cpanel server?
If yes, please if you could provide a tutorial or tell me how to.
Thank you very much.
s-f-r-j
|
Posted by HostingFields, 06-06-2010, 04:10 PM | Any1?
Thanks,
s-f-r-j
|
Posted by david510, 06-07-2010, 03:04 PM | You can listen pureftp on a different port for a certain IP. Not for all IP. By default when you start pure-ftp, it will be listening on default port 21 on all IPs. Say you need to run pure-ftp on port 27 on IP 192.168.1.1, follow below steps.
replace the line
# Bind 127.0.0.1,21
with
Bind 192.68.1.1,27
Copy the startup script.
replace
$DAEMONIZE $fullpath /etc/pure-ftpd.conf -O clf:/var/log/xferlog $OPTIONS --daemonize
with
$DAEMONIZE $fullpath /etc/pure-ftpd-new.conf -O clf:/var/log/xferlog $OPTIONS --daemonize
Start this.
The netstat result will show you the result.
|
Posted by madaboutlinux, 06-07-2010, 03:17 PM | In short, the answer is NO. BTW, if you have limited clients, you can restrict Ftp access to their IPs only blocking everything else.
|
Posted by HostingFields, 06-08-2010, 02:46 PM | Thanks, i will give it a try.
s-f-r-j
|
Posted by VIPoint, 06-09-2010, 01:15 AM | s-f-r-j, Let us know if the above fix works?
|
Posted by xtrac568, 06-09-2010, 01:17 PM | it should be possible with using separate configuration files, so that each configuration file have different port set and that you run new pure-ftpd instance for each configuration file.
however you'll need to write your own startup scripts to launch pure-ftpd instance for each configuration file, instead of using default startup scripts which will launch only one pure-ftpd instance.
|
Posted by CaGe, 05-13-2011, 11:03 PM | I was searching for something like this in order to run multiple instances of pure-ftpd without interferring.
I have to say, it works like a charm, I know the post is old but thank you for posting it.
Note: I did choose a differ auth scheme in the conf file vs the one that is currently running.
CaGe
ps: to madaboutlinux: you should test things before you post they won't work. It is a nice little piece, logical, so I thought it would have to work and it does.
Last edited by CaGe; 05-13-2011 at 11:08 PM.
|
|
Add to Favourites
Print this Article |