I needed to get a report of our internet traffic, but the trick was that we had two categories of traffic
- internet traffic
- site-to-site vpn traffic
we needed to see how much traffic is being spent on vpn traffic and how much is being spent on other internet trraffic.
I got ntop, installed it and let it run for 1 day, it generated very good reports but didn't satisy our need, so here is what i hacked.
- I started iptraf
- Created a filter to only show vpn traffic
- Configured it to log to a file every 1 minute (this is not the best interval but that is what i did) - sample log file attached
- At the end of the day I parsed the log file and generated a rrd file of the traffic and generated a graph
using the attached python script
Recent comments
6 weeks 7 hours ago
9 weeks 6 days ago
12 weeks 2 days ago
12 weeks 6 days ago
21 weeks 13 hours ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 9 weeks ago
2 years 22 weeks ago
3 years 29 weeks ago