Networking Forums

Networking Forums > Computer Networking > Linux Networking > logging linux-router traffic

Reply
Thread Tools Display Modes

logging linux-router traffic

 
 
fil
Guest
Posts: n/a

 
      03-02-2004, 02:56 PM
A pc with Slackware 9.1 with 2 ethernet cards will be the gateway to the
internet.

ip forward works, but what I would like to learn is how to make him keep
trace of the traffic in some log files, and how to configure them.

and possibly how to monitor them with some log analyser.

the pc, in principle, should not run squid, as the internet connection has
enough bandwidth.

I know it must be written in some man page somewhere, but right now I don't
know how to start...


 
Reply With Quote
 
 
 
 
John S
Guest
Posts: n/a

 
      03-02-2004, 03:28 PM

"fil" <(E-Mail Removed)> wrote in message
news:c22ani$1maqmg$(E-Mail Removed)...
> ip forward works, but what I would like to learn is how to make him keep
> trace of the traffic in some log files, and how to configure them.
>
> and possibly how to monitor them with some log analyser.


http://www.mrtg.org


 
Reply With Quote
 
Ken
Guest
Posts: n/a

 
      03-02-2004, 07:42 PM
Hi -

On Tue, 2 Mar 2004 17:56:15 +0200, "fil" <(E-Mail Removed)>
wrote:

>ip forward works, but what I would like to learn is how to make him keep
>trace of the traffic in some log files, and how to configure them.


iptables can log; see -j LOG and associated logging parameters, but if
you log every packet you are going to have huge log files.

--
Ken
http://www.ke9nr.net/
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      03-04-2004, 03:45 AM
fil <(E-Mail Removed)> wrote:
> A pc with Slackware 9.1 with 2 ethernet cards will be the gateway to the
> internet.
>
> ip forward works, but what I would like to learn is how to make him keep
> trace of the traffic in some log files, and how to configure them.
>
> and possibly how to monitor them with some log analyser.


Sounds like you want to use IP accounting. ipac-ng is kind of nice, but
lacks some features I would like to see, such as the ability to filter
national/international traffic (given suitable information to so). Also,
if you're getting information from ppp0, and its doing NAT, you'll only
see the packets AFTER they go through the firewall code (and after they
get NAT'd), which means you only see packets coming to/from the public
interface.

I've been meaning to look at ulog-acctd, which doesn't have the problem
with NAT.

Otherwise, you might just want to use tcpdump to capture the headers
(lots of data to contend with), which you can analyse using various
tools such as nsteams, tcptrace, ethereal etc.

TCPSpy may offer what you are after as well (available on Debian Sid,
and possibly Sarge)

Package: tcpspy
Description: Incoming and Outgoing TCP/IP connections logger
tcpspy is an administrator's tool that logs information
about incoming and outgoing TCP/IP connections. It's
written in C and uses no libpcap functions, unlike tcpdump.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic compression over a DSL line using a linux router Jason Linux Networking 1 03-03-2008 03:44 PM
logging traffic from router running DD-WRT George Wireless Internet 3 10-23-2007 05:30 AM
Linux logging server webcom.dk@gmail.com Linux Networking 2 10-13-2005 04:43 AM
Logging outbound traffic on a W3K router... Pradeep Windows Networking 1 11-02-2004 02:01 AM
Logging network traffic - alternatives to snort? Charlie Linux Networking 1 10-07-2003 02:32 AM



1 2 3 4 5 6 7 8 9 10 11