LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-27-2011, 05:26 PM   #1
zubbe
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
Log bandwidth usage per IP


I'm getting DDoS attacks on my server, and I need to block all the attacking IPs.

But for that I need to know which IPs are attacking me...

I was thinking that I should log the bandwidth usage per IP so I can tell which IPs are using excessive bandwidth.

How can I achieve this? I'm using Ubuntu 10.10.
 
Old 03-28-2011, 05:03 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Here is a link to a recent thread in the security forum: thread link. It is a discussion of a case where someone wanted to monitor their bandwidth because one machine was using an excessive amount and they didn't know why. They used the program iftop to monitor their bandwidth usage.

The program will tell you the bandwidth usage per host. See the screen shots here.
 
Old 03-28-2011, 07:57 AM   #3
zubbe
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry, posted in the wrong forum..

But from what I understand, iftop doesn't support logging?
 
Old 03-29-2011, 09:07 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,404

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
You may not need to check bandwidth; have you looked at fail2ban http://linux.die.net/man/8/fail2ban http://www.fail2ban.org/wiki/index.php/Main_Page ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Monitor and Log Internet Bandwidth Usage Woodsman Slackware 26 01-04-2010 08:19 PM
Bandwidth usage masenko703 Linux - Newbie 4 01-18-2009 11:30 PM
Monitor bandwidth usage and attempted usage! Depressed_amphibian Linux - Networking 3 06-15-2006 08:13 AM
Bandwidth usage monitor? Zmyrgel Linux - Networking 5 06-08-2006 04:12 AM
How to find bandwidth available ... not usage? russell Linux - Networking 3 09-15-2001 01:07 PM

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

All times are GMT -5. The time now is 05:06 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