Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 21, 2013 1:24 am 
Offline
Newbie

Joined: Thu Feb 21, 2013 1:17 am
Posts: 3
Hi,

I am facing issue on my linode server. Outbound traffic is high in 1sec/50mbps.

I have configured iptables but steel my problem is not resolve some time traffic is goes high and it will occupy my bandwidth as well as cpu process is 400%

How to find out this issue ?




Thanks,
Bhavin


Top
   
PostPosted: Thu Feb 21, 2013 1:30 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
I would suggest using something like 'iftop'. You can also see what type of traffic it is using tcpdump.

'tcpdump -i eth0 -c 1000 not port 22'

Usually, when you see this type of traffic and CPU spike it's an indication that your system is compromised and being used for nefarious purposes. I'm not saying that it's definitely the case...but probable.

Would you pastebin the output of tcpdump?

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Thu Feb 21, 2013 1:44 am 
Offline
Newbie

Joined: Thu Feb 21, 2013 1:17 am
Posts: 3
Hi,

I am continuously monitoring through iftop command in my working hours, but traffic outbound traffic is high at midnight that's why i can not found what happen on server.

I have created shell script last night and run through cron every 15 min. if traffic goes high above 1 mbps it will notify me and run tcpdump command and store o/p in one file.

Right now traffic is normal so i can not find out problem.

Below is my script.

#!/bin/bash

warn=`vnstat -tr | grep Mbit | tr -s ' ' '|' | cut -d "|" -f3 | head -n 1 | cut -d "." -f1`
if [ $warn > 1 ]
then
tcpdump -w /root/script/tc.pcap -c 20 -n -tttt -i eth0 port 80
tcpdump -c 20 -n -tttt -i eth0 port 80 >> /root/script/tc
else
echo " " >/dev/null 2>&1
fi




Thanks,
Bhavin


Top
   
PostPosted: Fri Feb 22, 2013 2:21 am 
Offline
Newbie

Joined: Thu Feb 21, 2013 1:17 am
Posts: 3
Hi Tim,

Here is my tcpdump output

http://privatepaste.com/5123a22f07


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group