Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am hosting a website and I found that the traffic on my server is quite high.

My Linux server is behind a router in a DMZ. I would like to see the traffic made on my Linux box on the eth0 interface, based on the public IP address of the client.

I would then like to see which client is stealing my bandwidth.

Or is it better if I do it from my router with DD-WRT?

Thanks!

share|improve this question
add comment

2 Answers

If you just need a simple curses-based interface, iptraf might be what you need. It shows you what connections are currently going on.

iptraf screenshot

However, if you need something more sophisticated, you could use the ipt_netflow Netfilter-target, which will send all the accounting-data to a Netflow-target.

P.S.: The OpenWRT website gives more pointers about bandwidth-monitoring.

share|improve this answer
add comment

Most DDWRT builds come with an application called RFlow. This application logs the traffic inbound and/or outbound in the router itself, together with the IPAddress, Port and the number of octets.

The data is collected in a database in the network (preferably internal). You could filter out the relevant data from this DB and analyze it.

I think RFlow is a port of the Cisco NetFlow protocol. So there should be a plethora of application floating around, which will help you analyze the data.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.