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.
On Thu, 15 Feb 2007 11:19:22 -0300, gregori andres wrote> 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.<cut> For logging traffic to mysql You can use ulogd from http://www.netfilter.org/projects/ulogd/index.html -- Grzegorz Chwesewicz
For traffic accounting you can look at pmacct or ipaudit On 16/02/07, Grzegorz Chwesewicz <ceho@chilan.com> wrote:> On Thu, 15 Feb 2007 11:19:22 -0300, gregori andres wrote > > 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. > > <cut> > > For logging traffic to mysql You can use ulogd from > http://www.netfilter.org/projects/ulogd/index.html > > -- > Grzegorz Chwesewicz > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >-- С уважение, Владимир Витков http://www.netsecad.com http://www.supportbg.com _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc