vsftpd 我在etc/hosts.allow设置了限制IP访问,但是为什么没有用?

由 zzhui 在 05-26-2004 09:08 发表:

vsftpd 我在etc/hosts.allow设置了限制IP访问,但是为什么没有用?

etc/hosts.allow

vsftpd : 172.16.0.6 : ALLOW

我想只让172.16.0.6 主机访问,怎么现在其他172.16的主机还可以登录ftp?


由 wolfop 在 05-26-2004 10:39 发表:


你的vsftpd用了tcpwrapper吗?

用xinetd inetd来启动吧。


由 coolend 在 05-26-2004 11:23 发表:


要通过TCPWrapper方式来控制FTP的访问,必须以standalone方式启动vsftpd

即在/etc/vsftpd/vsftpd.conf中必须有以下2行:

listen=YES

tcp_wrappers=YES

另外,/etc/hosts.allow像下面这样才行

vsftpd : 172.16.0.6 : ALLOW

vsftpd : ALL : DENY

因为/etc/hosts.allow默认允许所有服务通过, 也就是说它隐含的默认设置为:

ALL : ALL : ALLOW


QQ: 82433808

M$N: [email protected]

[ success ] && no excuse


由 dato 在 05-26-2004 17:10 发表:


参考

http://www.linuxsir.org/bbs/showthr...ighlight=vsftpd

如果从源码编绎首先

你需要在编译时打开 tcp_wrapper 支持!通过编辑 "builddefs.h' 来实现,改变如下:

#undef VSF_BUILD_TCPWRAPPERS

to

#define VSF_BUILD_TCPWRAPPERS

<font face="腩戾,verd

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus