LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2009, 01:46 PM   #1
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Rep: Reputation: 16
ProFtpd Login Wait


Hello;

I want to put a waiting time interval on login. Can I do that?

For example after sending the user and password data, I want user to wait about 10 seconds.

My purpose with this is to make hard brute force attacks.
 
Old 05-21-2009, 02:15 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I'm afraid that this is not possible.
But proftpd uses mod_delay that by default delays each login for an arbitrary amount of time (measured in usecs) that makes difficult the brute force attacks.
 
Old 05-21-2009, 02:35 PM   #3
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Original Poster
Rep: Reputation: 16
Well, It didn't make any difference. Tried so many times with different combinations also with restarting the service but nope...
 
Old 05-21-2009, 02:57 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
usecs are microseconds, so you can't see any difference. It you have enable trace you should see something like:
Quote:
May 21 22:47:26 [29053] <delay:8>: adding 816 usecs to USER row
May 21 22:47:26 [29053] <delay:8>: unlocking DelayTable '/usr/local/var/proftpd/proftpd.delay', row 1
May 21 22:47:27 [29053] <delay:8>: adding 1612 usecs to PASS row
May 21 22:47:27 [29053] <delay:8>: unlocking DelayTable '/usr/local/var/proftpd/proftpd.delay', row 2
May 21 22:47:27 [29053] <delay:8>: additional random delay of 27244 usecs added
May 21 22:47:27 [29053] <delay:8>: delaying for 115885 usecs
May 21 22:47:34 [29053] <delay:8>: adding 423 usecs to USER row
May 21 22:47:34 [29053] <delay:8>: unlocking DelayTable '/usr/local/var/proftpd/proftpd.delay', row 1
May 21 22:47:35 [29053] <delay:8>: adding 1481 usecs to PASS row
May 21 22:47:35 [29053] <delay:8>: unlocking DelayTable '/usr/local/var/proftpd/proftpd.delay', row 2
May 21 22:47:35 [29053] <delay:8>: additional random delay of 6301 usecs added
May 21 22:47:35 [29053] <delay:8>: delaying for 50210 usecs
So as you see the time between subsequent logins is random, thus making difficult the brute force attacks.
 
Old 05-21-2009, 03:01 PM   #5
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Original Poster
Rep: Reputation: 16
Than it provides some security increment. Thanks, I'll use it.

But I guess we can't change the usecs interval or minimum, right?
 
Old 05-21-2009, 03:17 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You guessed right...
But if you are a programmer, you can patch/edit mod_delay.c to add a minimum delay time.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wait on login mfran2002 Linux - General 4 03-01-2007 02:48 PM
Failed login > wait ten minutes etc pixie Linux - Security 11 08-18-2005 02:54 AM
Can't login to ProFTPd Martin Strand Linux - Networking 8 07-11-2005 09:59 PM
can't login proftpd pipio Linux - General 0 04-19-2004 12:55 PM
Why my proftpd sometimes can't login? itebooks Linux - Software 0 03-29-2004 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration