FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 12-03-2008, 06:07 AM
Phillipus Gunawan
Default IPTABLES specific host bandwidth accounting

Hi There,

Failing to make bandwidth-pgsql to work, I decided just to log individual host' bandwidth consumption within the IPTABLES
I got Shorewall up and running with simple configuration allowing everything to come-and-go

I put my own script on /etc/shorewall/start
iptables -N localnet

iptables -A FORWARD -d -j localnet
iptables -A FORWARD -s -j localnet

iptables -A localnet -d
iptables -A localnet -s

iptables -A localnet -d
iptables -A localnet -s

As I am hopping with running command :

iptables -L -v -n

will gives me the list of readable traffic for host and
but after waiting for few minutes/hours, this is what I got:

Chain localnet (2 references)
pkts bytes target prot opt in out source destination
0 0 0 -- * *
0 0 0 -- * *
0 0 0 -- * *
0 0 0 -- * *

Chain FORWARD (policy DROP 2 packets, 96 bytes)
pkts bytes target prot opt in out source destination
3096 148K TCPMSS tcp -- * * tcp flags:0x06/0x02 TCPMSS clamp to PMTU
34658 14M ppp0_fwd 0 -- ppp0 *
34032 5258K eth1_fwd 0 -- eth1 *

Is there any specific value(s) I need to set on shorewall.conf to make my script work?
Or am I putting the wrong script?

Any help please?


Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 03:04 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org