目的:对某些用户进行登录ip限制

proftp配置:
限制以下两个用户只能从某两个ip段登录

<IfUser user1 user2>
  <Limit LOGIN>
    Order allow,deny
    Allow from 1.2.3.0/24 2.3.4.0/24
    DenyAll
  </Limit>
</IfUser>


默认情况下proftp没有这个模块,会提示出错:

Checking syntax of configuration file
- Fatal: unknown configuration directive '<IfUser>' on line 24 of '/Data/apps/proftpd/etc/proftpd.conf'


从源码编译,可以选择编译进来的,比如可以类似这样:

./configure --prefix=/Data/apps/proftpd \
--enable-shadow \
--enable-autoshadow   \
--with-modules=mod_ratio:mod_readme:mod_wrap:mod_ifsession \
&& make && make install


参考:http://blog.chinaunix.net/u/6098/showart_237162.html


原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
Tags: , ,
发表评论
表情
emotemotemotemotemotemotemotemotemotemotemotemotemot
emotemotemotemotemotemotemotemotemotemotemotemot
打开HTML 打开UBB 打开表情 隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写
 

阅读推荐

服务器相关推荐

开发相关推荐

应用软件推荐