From: "yomega" <yomega@wahooo.net>
To: netfilter@lists.samba.org
Subject: OK the last one: IP Accounting
Date: Sun, 23 Jun 2002 09:35:58 +0200 [thread overview]
Message-ID: <NFBBLDBMIDIOFPBNLEAJOEKCCHAA.yomega@wahooo.net> (raw)
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
next reply other threads:[~2002-06-23 7:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-23 7:35 yomega [this message]
2002-06-23 8:04 ` OK the last one: IP Accounting 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NFBBLDBMIDIOFPBNLEAJOEKCCHAA.yomega@wahooo.net \
--to=yomega@wahooo.net \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox