From: Patrick Schaaf <bof@bof.de>
To: yomega <yomega@wahooo.net>
Cc: netfilter@lists.samba.org
Subject: Re: OK the last one: IP Accounting
Date: Sun, 23 Jun 2002 10:04:27 +0200 [thread overview]
Message-ID: <20020623100427.N5183@oknodo.bof.de> (raw)
In-Reply-To: <NFBBLDBMIDIOFPBNLEAJOEKCCHAA.yomega@wahooo.net>; from yomega@wahooo.net on Sun, Jun 23, 2002 at 09:35:58AM +0200
Yo Mega,
> iptables -A httpd_accounting -p tcp --dport 80
> iptables -A INPUT -p tcp --dport 80 -j httpd_accounting
> iptables -A OUTPUT -p tcp --dport 80 -j httpd_accounting
>
> Now I'm finished !!?
I don't think so.
> You think this is OK?
No.
> Or do I count some traffic twice?
No.
> And, of course, have i counted ALL the traffic?
No.
You now count traffic from clients to your HTTP server, as well as
packets from your server machine to OTHER HTTP servers.
In the OUTPUT chain rule, change "--dport" to "--sport", and then you
will be finished, and count both packets to and from your port 80.
In general, when going from INPUT rules to OUTPUT rules for the same
thing, switch sources and destinations.
best regards
Patrick
next prev parent reply other threads:[~2002-06-23 8:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-23 7:35 OK the last one: IP Accounting yomega
2002-06-23 8:04 ` Patrick Schaaf [this message]
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=20020623100427.N5183@oknodo.bof.de \
--to=bof@bof.de \
--cc=netfilter@lists.samba.org \
--cc=yomega@wahooo.net \
/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