I have a fresh installation of pure-ftpd on Ubuntu Server 12.04, and for the life of me I can't find any kind of central config file. All I need to do is set a passive port range. At this point I would settle with knowing its default passive port range (assuming it has one) so I can go change the firewall to match it. Any ideas?
Asked
Active
Viewed 1,860 times
2 Answers
2
Try this:
echo "10000 11000" > /etc/pure-ftpd/conf/PassivePortRange
I found this by reading the manpage for pure-ftpd-wrapper:
pure-ftpd-wrapper reads the configuration for the Pure-FTPd daemon from files in the directory /etc/pure-ftpd/conf. Each file in this directory is related to a command line option. ... Two numbers "AnonymousRatio", "LimitRecursion", "PassivePortRange",
I was directed to that manpage by /usr/share/doc/pure-ftpd/README.Debian (which I found from looking through dpkg -L pure-ftpd|grep -i doc:
pure-ftpd for Debian
Please note that these packages use a complete new configuration scheme, read the pure-ftpd-wrapper manual page for more information.
Brian Cain
- 317
0
Try the next variant:
echo "40000 50000" > /etc/pure-ftpd/conf/PassivePortRange
/etc/init.d/pure-ftpd restart
Where 40000 is the minimal passive port and 50000 is the maximal passive port for ftp.
Logic Wreck
- 1,430