• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Recording Network Statistics

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
tutaepaki
Trusted SF Member
Trusted SF Member


Joined: 02 May 2002
Posts: 3
Location: New Zealand

Offline

PostPosted: Mon Dec 02, 2002 10:12 pm    Post subject: Recording Network Statistics Reply with quote

I created a script which records my internet usage stats so I can get track of my volume. (I'm planning to move to a higher speed/lower cap cable
connection)

I get the bytes sent/received from /proc/net/dev but my numbers are always way above what my ISP shows. I'm thinking that it's because the stats in /proc include broadcasts, but my ISP's don't.

I've looked around /proc and searched but can't find any place where I can get hold of the broadcast vs Unicast vs Multicast traffic. I'd prefer not to have to use pcap, but at the moment that seems to be my only option.

Anyone know where else I might this info?

Thanks
Back to top
View user's profile Send private message
tutaepaki
Trusted SF Member
Trusted SF Member


Joined: 02 May 2002
Posts: 3
Location: New Zealand

Offline

PostPosted: Tue Dec 10, 2002 10:45 am    Post subject: Reply with quote

Answered my own question...if anyones interested...

I used iptables in the end....added a new chain called accounting
which has just 4 entries, all for the internet interface
Anything inbound
Anything outbound
Anything inbound to subnet broadcast address
Anything inbound to global broadcast address
None of which with a jump parm, so all they do is count the packets/bytes

Then I inserted a jump to the accounting chain on the INPUT, OUTPUT, and FORWARD chains, and every hour, read, save, and reset the counters.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
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
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter