求助!pure-ftp怎么限制登录ip段?
发表于 : 2012-01-10 14:37
如题。


貌似不能这么做,因为我打算让某ip段的用户可以使用下载帐号,但不能使用上传帐号。死亡阴影 写了:在/etc/hosts.deny 限制 协议和IP段吧
总结一下给懒得看英文的朋友:-r and -R are handy to restrict where the user can connect from. They can be
followed by a simple IP/mask pair (-r 192.168.1.0/24), multiple pairs
separated by a coma (-r 192.168.1.0/24,10.1.0.0/16,127.0.0.1/32), single IPs
(-r 192.168.1.4,10.1.1.5), host names (-r bla.bla.net,yopcitron.com), or any
combination of those.
或者-r ip/mask
r表示允许登录的ip段,R表示禁止登录的。-R ip/mask