View Full Version : Userīs traffic in DA show 50GB, but not webalizer/awstats
GoranTornqvist
12-12-2005, 03:48 AM
Hello,
A customerīs traffic has gone thru the roof this month:
48409.5 / 10240
But itīs not his homepage thatīs been visited more, according to awstats and webalizer.
How do I determine what caused this rise in bandwidth usage?
My customer need an answer and I obviously don't have one :)
Thanks for your help...
jerry2005
12-12-2005, 05:56 AM
Could it be that ftp traffic generated this ? check your proftpd logfile.
nobaloney
12-12-2005, 08:42 PM
Has he got a php form which might have been hijacked to send spam?
Jeff
GoranTornqvist
12-13-2005, 02:59 AM
Yes he has, and I know that he's been having trouble with people using his html form to spam.
According to awstats the html form have had 612 hits in december so it's in the top.
What I found out:
Checking his userīs bandwidth.tally file (size 13MB) I can see that there MILLIONS of lines that show the same info, like:
30304
30304
30304
30304
30304
30304
30304
30304
30304
30304
30304
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
30502
last tally "querystring" looks like:
18685343.000000=type=tally&time=1134431505&ftp_bw_total=0.000000& http_bw_total=18489211.000000&da_bw_total=196132.00
0000
"http_bw_total" looks suspecious to me. sums up to 18,48 GB which seems OK since the bandwidth for his account was about 20 GB less yesterday when I checked it in DA.
But since the traffic is not shown in awstats and webalizer I'll have a hard time convincing him that he used all this bandwidth :)
Checked the homedir log file (temporary adress servername/~user) but couldn't find anything.
I'm lost, any ideas...?
Really need the the source of this...
EDIT:
Got this answer from John, so it looks like its email traffic:
Hello,
Check his /usr/local/directadmin/data/users/username/bandwidth.tally file
Any line that does not have an = sign in it is an outgoing email (taken from /etc/virtual/usage/username.bytes)
If you see many repeated lines of the same size (within a few bytes), then it's likely a spammer on his account.
Thank you,
John
GoranTornqvist
12-13-2005, 04:44 AM
Found it.
The userīs script was using the From e-mail in the mail header in the php mail() function without checking if it was valid...so the script was e-mail injected.
70GB of bandwidth...that's a lot of e-mails!
jmstacey
12-13-2005, 11:16 AM
I'm surprised your DC didn't shut it down.
Mine shuts down the server completly at any sign of outgoing DoS attack.
They're a little overly strict though.
Anyways, Congratulations on solving your problem! :D
nobaloney
12-14-2005, 03:51 PM
Goran, your customer is lucky we're not his host :) .
Our TOS allows us to charge us$10 per spam email sent.
After we point that out to them they're more than happy to pay for the bandwidth and for the time we spend to find and clean up the mess.
Do we always charge it? No.
Do we always charge something? No.
But it's important to have terms in place that allow you to recover your costs.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.