Hi, I''m not quite sure if my rules are correctly set for accounting the whole traffic over eth0. I have a 2 interfaces setup, eth0 connected to the internet and eth1 to the local network. No I want to count the whole internet traffic (in and out, each protocol) for eth0. I''m using shorewall 4.0.13 and the following rules in /etc/shorewall/accounting: traffic - - eth0 traffic - eth0 - traffic:COUNT - - eth0 traffic:COUNT - eth0 - Thanks in advance -- Walter Neu Blumenstr. 5 66583 Spiesen-Elversberg T: +49 6821 77354 M: +49 170 5266183 E: w.neu@web.de ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Walter Neu wrote:> Hi, > > I''m not quite sure if my rules are correctly set for accounting the > whole traffic over eth0. > I have a 2 interfaces setup, eth0 connected to the internet and eth1 to > the local network. > > No I want to count the whole internet traffic (in and out, each > protocol) for eth0. > > I''m using shorewall 4.0.13 and the following rules in > /etc/shorewall/accounting: > > traffic - - eth0 > traffic - eth0 - > traffic:COUNT - - eth0 > traffic:COUNT - eth0 - >The first two rules are the same as the second two. Also, if all you want is the traffic in/out of eth0, you can get that from "ip -s link list dev eth0" without any Shorewall rules. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
maybe I''m wrong but in this case I cannot zero the packet and byte counters. Tom Eastep schrieb:> Walter Neu wrote: >> Hi, >> >> I''m not quite sure if my rules are correctly set for accounting the >> whole traffic over eth0. >> I have a 2 interfaces setup, eth0 connected to the internet and eth1 >> to the local network. >> >> No I want to count the whole internet traffic (in and out, each >> protocol) for eth0. >> >> I''m using shorewall 4.0.13 and the following rules in >> /etc/shorewall/accounting: >> >> traffic - - eth0 >> traffic - eth0 - >> traffic:COUNT - - eth0 >> traffic:COUNT - eth0 - >> > > The first two rules are the same as the second two. Also, if all you > want is the traffic in/out of eth0, you can get that from "ip -s link > list dev eth0" > without any Shorewall rules. > > -Tom > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users >------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
Walter Neu wrote:> maybe I''m wrong but in this case I cannot zero the packet and byte > counters.True. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
why don''t you try to use iptraf utility? its wonderful and very easy to work with. On most distros it comes builtin. it can give you all stats you could wish for. On Tue, Aug 5, 2008 at 1:42 AM, Tom Eastep <teastep@shorewall.net> wrote:> Walter Neu wrote: > >> maybe I''m wrong but in this case I cannot zero the packet and byte >> counters. >> > > True. > > > -Tom > -- > Tom Eastep \ Nothing is foolproof to a sufficiently talented fool > Shoreline, \ http://shorewall.net > Washington USA \ teastep@shorewall.net > PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer''s > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users > >-- Regards, Asim Ahmed Khan Contact : (+92)3452109368 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer''s challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/