LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2011, 03:47 PM   #1
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
how to know total upload and download stats till date


I am thinking that Am I able to know how much data I received and sent till date since my MINT 9 ????
I wanted to know is there method that counts total stats of upload and download since I installed My linux...
System monitor is good for only one session..Once you restart the PC all gone.....

Thanks in Advance..
 
Old 05-10-2011, 11:39 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
From this date forward you can use iptables to keep track of your bandwidth totals.

The thing is, I believe that Mint uses ufw as a front-end to iptables, and I don't know how to save the counters using ufw.

First you need to configure iptables how you want it then save the rules to a file, for example /etc/iptables.rules

Then you need to set it up so they load at boot and save at shutdown.

One way you could restore your rules and counters is with a script in rc.local

Code:
#!/bin/bash
/sbin/iptables-restore -c < /etc/iptables.rules
or where you want to save your rules and you could put this file in /etc/init.d/rc.local making sure it is executable

and you could put another script in /etc/rcS.d/S50iptables with

Code:
#!/bin/bash
/sbin/iptables-save -c > /etc/iptables.rules
To save your counters and rules at shutdown.

You could check this out too
http://wiki.debian.org/iptables
 
  


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
Total Download Limit through squid Baps Linux - Networking 2 04-09-2009 05:05 AM
Restricting Download based on total download using Squid,SARG& Webmin jomy Linux - Networking 0 04-27-2005 06:04 AM
hdd-related download problem(upload 4-5MB/s, download ~1MB/s) tine Linux - Hardware 4 09-15-2004 03:06 PM
Total Newbie-Where to download UltimaGuy Slackware 6 10-01-2003 06:14 AM
VSFTPD - can download but cant upload. Dirt Linux - Software 1 09-06-2003 08:42 PM


All times are GMT -5. The time now is 01:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration