LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2015, 02:47 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 924

Rep: Reputation: 61
Smile Easiest way to see how much traffic each month?


Hi LQ,

I've got a small Ubuntu-server netbook running at my parents place on their DSL connection. I use it mainly as a dropship/remote storage but also run a Mumble server for my small gaming clan. I'd like to know how much bandwidth I'm using each month.

Is there just a simple log I can look at on the system that will tell me the total amount of traffic for a given period of time for specific ports?
 
Old 10-24-2015, 04:40 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by wh33t View Post
Is there just a simple log I can look at on the system that will tell me the total amount of traffic for a given period of time for specific ports?
i don't think so, but there are various apps that provide exactly that.
requires a little setup.
search LQ.
 
1 members found this post helpful.
Old 10-24-2015, 05:11 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
vnstat provides running totals by hour/day/month

If you want it by port, maybe just a couple of iptables rules to match the required traffic and a script to poll and log the counters would work.
 
1 members found this post helpful.
Old 10-24-2015, 05:51 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by wh33t View Post
Hi LQ,

I've got a small Ubuntu-server netbook running at my parents place on their DSL connection. I use it mainly as a dropship/remote storage but also run a Mumble server for my small gaming clan. I'd like to know how much bandwidth I'm using each month.

Is there just a simple log I can look at on the system that will tell me the total amount of traffic for a given period of time for specific ports?
Check out iptraf. Requires very little setup.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tunnel all traffic - The easiest way speigel205 Linux - Software 10 06-08-2014 11:22 AM
Easiest way to redirect external web traffic to VMWare web host on same machine? mattp52 Linux - Networking 4 07-16-2009 02:47 PM
Best , easiest and most efficient way to monitor network traffic entz Linux - Networking 1 04-25-2007 09:36 PM
Traffic capped at 1gb/month absm1 Linux - Networking 0 09-12-2003 12:03 PM
ip traffic mb/month thorwil Linux - Networking 2 04-23-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration