So, I, like many, use the excellent
Pure-FTPd ftp server. However, today I ran into some trouble ...
In general, it was like that. Put on the machine Pure-FTPd, got virtual users. Checked, everything worked perfectly. Raise, firewall in which opened 21 ports. It stopped working at all ... Well, of course, you still have to open PassivePortRange in the firewall for data transfer. Open the Pure-FTPd configuration file and see the following.
# Port range for passive connections replies. - for firewalling. # PassivePortRange 30000 50000
# Port range for passive connections replies. - for firewalling. # PassivePortRange 30000 50000
Looked carefully? Well, respectively, uncomment and get.
- #Port range for passive connections replies. - for firewalling.
- PassivePortRange 30000 50,000
Restart Pure-FTPd, add to the firewall rules to pass data for these ports. Trying ... does not work! Hmm, that is, it works, you can connect, but the data goes through time ... Strange.
Turn on the head. We understand that the firewall passes through time. But how can this be? We open the log and see that for some reason we have data not only on ports 30,000: 50,000, but also on some others. How can this be? We set them in the configuration file!
Run the excellent utility
pure-config-args .
- request: / etc / pure-ftpd pure-config-args pure-ftpd.conf
- -A -c10 -B -C3 -z -D -e -fftp -H -I15 -lpam -L2000: 8 -m4 -s -U177: 077 -u40 -x -r -i -k99 -G -Z
Well, where are our ports? BUT? Open the config again and write.
- #Port range for passive connections replies. - for firewalling.
- PassivePortRange 30000: 50,000
Everyone noticed that there appeared ":". And now everything is fine with us. And the ports in the config appeared, and of course it worked all at once. Of course, according to the mind, the range is always written in ":", well, not through a space. But, when you see that in a clean, I would even say a space in the virgin configuration file, then you write a space.
Conclusion: do not believe the virgin configs and rtfm!PS I have
Pure-FTPd 1.0.21–182.32.1 , the system is
OpenSuse 11.1PPS Transferred to Open Source. Made a bug report.
PPPS Frank just wrote to me (the main developer of Pure-FTPd), said that this is a cant in the entire version, and not only in OpenSuse, will be eliminated in the next build.