Skip to contentSkip to conversation

monitoring hosts from my lan

LARTC gregori andres 3 participants 3 messages Feb 15, 2007 – Feb 16, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

there is a way to graph host's traffic from my lan ?

I've a linux router (2.4.x kernel), and a lan:

linux router : 192.168.1.254
host 1: 192.168.1.1
host 2: 192.168.1.2
host 3: 192.168.1.3

I'm looking for a way to graph traffic ( in / out ) from each 3 hosts, and store total traffic on a mysql table, in order to make statistics later.

I think I can do with Mrtg, Cacti, or RRD, but I don't know how to get total traffic data for each host.

I also think that I can put ACCEPT rules on FORWARD iptables chain (for each host), and later get total traffic data from iptables -L FORWARD -vn , but I think that this way is a bit hard... :-( there is a easyer way ?

best regards

andres.

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

On Thu, 15 Feb 2007 11:19:22 -0300, gregori andres wrote

Quoted 6 lines

Hi,

there is a way to graph host's traffic from my lan ?

I've a linux router (2.4.x kernel), and a lan:

Quoted 8 lines

linux router : 192.168.1.254
host 1: 192.168.1.1
host 2: 192.168.1.2
host 3: 192.168.1.3

I'm looking for a way to graph traffic ( in / out ) from each 3 hosts, and store total traffic on a mysql table, in order to make statistics later.

<cut>

For logging traffic to mysql You can use ulogd from
http://www.netfilter.org/projects/ulogd/index.html

--
Grzegorz Chwesewicz
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to gregori andres

For traffic accounting you can look at pmacct or ipaudit

Quoted 28 lines · Grzegorz Chwesewicz

On Thu, 15 Feb 2007 11:19:22 -0300, gregori andres wrote

Quoted 6 lines

Hi,

there is a way to graph host's traffic from my lan ?

I've a linux router (2.4.x kernel), and a lan:

Quoted 8 lines

linux router : 192.168.1.254
host 1: 192.168.1.1
host 2: 192.168.1.2
host 3: 192.168.1.3

I'm looking for a way to graph traffic ( in / out ) from each 3 hosts, and store total traffic on a mysql table, in order to make statistics later.

<cut>

For logging traffic to mysql You can use ulogd from
http://www.netfilter.org/projects/ulogd/index.html

--
Grzegorz Chwesewicz
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Signature · 5 lines
С уважение,
Владимир Витков

http://www.netsecad.com
http://www.supportbg.com

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc