proftpd: How to set retry delay after failed logins ?
How do you configure proftpd so that once a user has failed to login and reached the MaxLoginAttempts. That they can not retry logging in for another 4 hours ?
I've been reading through proftpd's list of directives; but I can not find the answer. And I feel it's probably staring me in the face. :( Thanks; --ET |
Hi -
MaxLoginAttempts controls how many times a user can try to log in before he gets disconnected. AFAIK, he can try connecting again as many times as he wants, as often as he wants. Sorry I can't be more helpful :( |
Hi,
It can be done with mod_ban Check if your proftpd is compiled with the mod_ban module by running: Code:
proftpd -l |
Thanks !
I had JUST stumbled upon this site: http://freebsd.munk.me.uk/archives/2...lockhosts.html Which displayed this code: Code:
MaxLoginAttempts 1 But it doesn't look like our proftpd was compiled with mod_ban. Bummer.:( --ET |
You can download the source and compile it yourself adding support for mod_ban.
Running Code:
proftpd -V Quote:
Code:
./configure --enable-ipv6 --localstatedir=/var/run --with-modules=mod_readme:mod_ratio:mod_tls:mod_wrap:mod_ctrls_admin:mod_ban --build=i486-slackware-linux build_alias=i486-slackware-linux CFLAGS=-O2 -march=i486 -mtune=i686 --prefix=/usr --sysconfdir=/etc Regards |
Thank you Bathory !
I'm currently doing this on a RHEL server that is not mine. And I'm hitting road blocks while trying to compile; ie. no it's a bare bones server with no compilers installed. So now it's a matter of either being allowed to install the compilers; OR compile on another system. Thanks ! --ET |
It looks like mod_ban is included in recent proftpd-1.3.2d-1 RHEL packages. Do a search here and get the one for your distro
Regards |
All times are GMT -5. The time now is 10:39 AM. |