Proftpd:只允许一个地址

我正在Google上search它,但是我没有find任何东西。 有没有办法设置proftpd,它只会接受ftp.website.ext上的连接,而不是在website.ext或test.website.ext上

我在Debian 5上运行proftpd

汤姆

我认为这篇文章的最后一部分可能有帮助吗? 它讨论只侦听特定的IP地址。

从你做的其他反馈来看,你似乎希望它是基于主机名的,这些主机的IP地址都是一样的。 答案是,不,你不能这样做,对不起。 FTP是旧的,旧的协议,不处理主机名。 客户端没有任何机制来发送请求的主机名,服务器也没有设施来接受它。

以与Apache相同的方式使用VirtualHost和Default Address块的组合:

http://proftpd.org/docs/directives/linked/config_ref_VirtualHost.html
http://proftpd.org/docs/directives/linked/config_ref_DefaultAddress.html

DefaultAddress 1.2.3.4 ftp.website.com <VirtualHost website.com www.website.com> ...config stuff... <Limit LOGIN> Order allow,deny Allow from none Deny from all </Limit> </VirtualHost> <VirtualHost ftp.website.com> ...do FTP configs... </VirtualHost> 

未经我testing,但看起来应该工作。