Linux Netfilter discussions
 help / color / mirror / Atom feed
* OK the last one: IP Accounting
@ 2002-06-23  7:35 yomega
  2002-06-23  8:04 ` Patrick Schaaf
  0 siblings, 1 reply; 8+ messages in thread
From: yomega @ 2002-06-23  7:35 UTC (permalink / raw)
  To: netfilter

Hi List,

sorry 4 bothering you once again :) But tonight in my nice and warm little
bed my IP-Traffic Accounting Question Brain stood up once again :)

For Example, i wanna count the Traffic of my HTTPD so its only Port 80, not
other HTTPS Stuff or such its just an easy one :) Now my thoughts:

1. I Add a chain, httpd_accounting
2. I Add a rule @ httpd_accounting on port 80, no matter if its Input or
Ouput just this:

iptables -A httpd_accounting -p tcp --dport 80

2. At the Input Chain i add an Rule for Port 80 that Jumps to
httpd_accounting

iptables -A INPUT -p tcp --dport 80 -j httpd_accounting

So my INPUT traffic is now ready 4 counting.

3. Now the Output Traffic has to be counted, same thing but:

iptables -A OUTPUT -p tcp --dport 80 -j httpd_accounting

Now I'm finished !!?

You think this is OK? Or do I count some traffic twice? And, of course, have
i counted ALL the traffic?

Thx 4 all nice ppl reading my stupid question :o)

Greetz,
yomega



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-06-23  8:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-23  7:35 OK the last one: IP Accounting yomega
2002-06-23  8:04 ` Patrick Schaaf
2002-06-23  8:10   ` AW: " yomega
2002-06-23  8:09     ` Antony Stone
2002-06-23  8:23       ` AW: " yomega
2002-06-23  8:32         ` Patrick Schaaf
2002-06-23  8:42           ` AW: " yomega
2002-06-23  8:14     ` Patrick Schaaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox