LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2007, 10:55 AM   #1
stevod333
Member
 
Registered: Mar 2006
Location: Australia
Distribution: SUSE 10.2
Posts: 47

Rep: Reputation: 15
network user data logging (using iptables)


Hi all,

I have just added a third member to our home network who is now also sharing our internet connection via my Fedora (core 5) server, using iptables.

Since we have a data usage limit set by our ISP, I now need to start logging data usage for each ip address...
To be more specific, three internal ip addresses used by the three users on the network (including myself), and one other internal ip address of course belongs to the server itself (all static ip addresses used on the network obviously)

There are two NIC's installed in the server - one for the internal side, and the other connected to the cable modem.

I've been looking at using iptraf to output a log file, then read the data from that... the only way i can see to do it is to write my own program to read the log files to show me the data usage of each user - this would be time consuming, and I need to come up with a solution fast.

Anybody have any ideas on how to easily log internet data usage on a system like this?
Is there a way to output data from iptables rather than using iptraf?
Any ideas at all?

Regards,
Steve

Last edited by stevod333; 07-29-2007 at 10:57 AM.
 
Old 07-29-2007, 04:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Have a look here:
http://iptables-tutorial.frozentux.n...tml#ULOGTARGET


Cheers,
Tink
 
  


Reply



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] Logging/Data; where to store Wim Sturkenboom Programming 1 11-15-2006 12:26 AM
logging data transfer minm Linux - Newbie 1 12-14-2004 03:00 AM
Iptables and logging bennethos Linux - Security 1 10-18-2004 12:40 AM
Logging data usage Jazza005 Linux - Networking 7 03-17-2003 01:17 AM
Logging total daily data trasfers jaaber Linux - Networking 2 02-07-2002 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration