由 bluespray 在 11-17-2003 20:09 发表:
有没有人知道:在LINUX如何限制FTP重试次数?
我安装了pure-ftp+mysql,各项功能都不错,但我好象没有发现可以限制客户端的登陆重试次数!在WINDOWS系统中的Serv-U中可以设置拦截超时几次多少秒多长时间,这样就可以防止FTP密码破解工具不断尝试登陆了!
由 Snoopy 在 11-17-2003 20:25 发表:
iptables?-I?INPUT?-p?tcp?--dport?21?-m?iplimit?--iplimit-above?2?-j?REJECT
限制并发连接本机为2个,是不是你想要的?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 大熊宝宝 在 11-17-2003 21:33 发表:
这是限制每个客户端(每个IP)并发TCP连接的最大个数
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 Snoopy 在 11-17-2003 21:41 发表:
如何在RED Hat Linux 防一用户两个人用登陆.
echo "* hard maxlogins 2" >> /etc/security/limits.conf
Notes: This setting do not affact root account.
直接在shell里面,就是你的命令行下面输入
echo "* hard maxlogins 2" >> /etc/security/limits.conf
然后回车,这个命令会将内容
- hard maxlogins 2
写到文件/etc/security/limits.conf中
还要防终端呀,那就继续
echo "session required pam_limits.so" >> /etc/pam.d/login
注:转来的!
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 11-17-2003 21:47 发表:
真不好意思,题目看不定,帮不到你,抱歉!
限制连往本机的web服务,1个C段的IP的并发连接不超过100个,超过的被拒绝:
iptables -I INPUT -p tcp --dport 80 -m iplimit --iplimit-above 100 \
--iplimit-mask 24 -j REJECT
可不可以根据例子修改一下而实现呢??
这个命令你能执行吗?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 大熊宝宝 在 11-17-2003 22:06 发表:
> quote:
>
> * * *
>
> 最初由 pinksnoopy 发表
>
> **真不好意思,题目看不定,帮不到你,抱歉!
>
>
>
> 限制连往本机的web服务,1个C段的IP的并发连接不超过100个,超过的被拒绝:
>
> iptables -I INPUT -p tcp --dport 80 -m iplimit --iplimit-above 100 \
>
> --iplimit-mask 24 -j REJECT
>
>
>
> 可不可以根据例子修改一下而实现呢??
>
> 这个命令你能执行吗? **
>
> * * *
这个命令你能执行吗?
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 home 在 11-17-2003 22:13 发表:
> quote:
>
> * * *
>
> 最初由 pinksnoopy 发表
>
> **iptables?-I?INPUT?-p?tcp?--dport?21?-m?iplimit?--iplimit-above?2?-j?REJECT
>
>
>
> 限制并发连接本机为2个,是不是你想要的? **
>
> * * *
请问这里这么多?号,它有什么用的
open your eyes
Come from www.xlzx.com
我在chinaunix.
由 Snoopy 在 11-18-2003 08:10 发表:
我复制过来变成?这个了,是空格
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 bluespray 在 11-18-2003 20:11 发表:
老大,你们这么回答的文不对题啊?
我问的是限制FTP的重试次数,就是说防止不法用户用FTP密码破解工具不断测试用户名和密码!如果可以限制密码错误三次就禁止连接10分钟的话,就可以有效的防止破解了,象Serv-U就有这种功能,但LINUX下的FTP软件好象都没有这个功能,有人知道吗????
由 没什么 在 11-19-2003 10:10 发表:
由 r2007 在 11-20-2003 12:00 发表:
将你的pure ftp使用的验证方式贴出来。
是用系统账号,还是PAM,还是采用mysql or LADP?
由 home 在 11-20-2003 12:31 发表:
能改变/etc/passwd的权限吗?每隔几分钟就才让远程用户有权读取/etc/passwd.而且只能读三次。
open your eyes
Come from www.xlzx.com
我在chinaunix.
由 home 在 11-20-2003 14:33 发表:
> quote:
>
> * * *
>
> 最初由 home 发表
>
> 能改变/etc/passwd的权限吗?每隔几分钟就才让远程用户有权读取/etc/passwd.而且只能读三次。
>
> * * *
不过这样不行,其他用户怎么办??
open your eyes
Come from www.xlzx.com
我在chinaunix.
由 hgkrt 在 11-20-2003 16:44 发表:
proftpd就有吧...
欢迎访问我的个人主页!!!
主机:
网上空间:
http://www.paw.hi-ho.ne.jp/hgkrt
由 bluespray 在 11-20-2003 17:13 发表:
我用的是采用mysql 配置文件如下:
==========================================
##############################################
Sample Pure-FTPd Mysql configuration file.
See README.MySQL for explanations.
##############################################
Optional : MySQL server name or IP. Don't define this for unix sockets.
MYSQLServer localhost
Optional : MySQL port. Don't define this if a local unix socket is used.
MYSQLPort 3306
Optional : define the location of mysql.sock if the server runs on this host.
MYSQLSocket /tmp/mysql.sock
Mandatory : user to bind the server as.
MYSQLUser root
Mandatory : user password. You must have a password.
MYSQLPassword xxxxxx
Mandatory : database to open.
MYSQLDatabase test
Mandatory : how passwords are stored
Valid values are : "cleartext", "crypt", "md5" and "password"
("password" = MySQL password() function)
You can also use "any" to try "crypt", "md5" and "password"
MYSQLCrypt cleartext any