我在Ubuntu Server 12.04上安装了纯粹的ftpd,对于我来说,我找不到任何一种中央configuration文件。 我所需要做的就是设置一个被动的端口范围。 在这一点上,我会知道它的默认无源端口范围(假设它有一个),所以我可以去改变防火墙来匹配它。 有任何想法吗?
尝试这个:
echo "10000 11000" > /etc/pure-ftpd/conf/PassivePortRange
我通过阅读pure-ftpd-wrapper的手册页find了这个:
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",
我是通过/usr/share/doc/pure-ftpd/README.Debian (我通过dpkg -L pure-ftpd|grep -i doc :
Debian的pure-ftpd
请注意,这些软件包使用全新的configurationscheme,请阅读pure-ftpd-wrapper手册页以获取更多信息。
尝试下一个变体:
echo "40000 50000" > /etc/pure-ftpd/conf/PassivePortRange /etc/init.d/pure-ftpd restart
其中40000是最小的被动端口,50000是ftp最大的被动端口。