From: "yomega" <yomega@wahooo.net>
To: netfilter@lists.samba.org
Subject: AW: OK the last one: IP Accounting
Date: Sun, 23 Jun 2002 10:10:36 +0200 [thread overview]
Message-ID: <NFBBLDBMIDIOFPBNLEAJKEKECHAA.yomega@wahooo.net> (raw)
In-Reply-To: <20020623100427.N5183@oknodo.bof.de>
Mornin ppl :)
Thx 4 all the nice answers, i think i got it now and i set up Accounting for
my POP3 Server.
Please take a look at this:
----------------------------------------------------------------------------
------------
Chain INPUT (policy ACCEPT 2576K packets, 358M bytes)
pkts bytes target prot opt in out source
destination
48 2216 pop3 tcp -- any any anywhere anywhere
tcp dpt:pop3
0 0 pop3 udp -- any any anywhere anywhere
udp dpt:pop3
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 2474K packets, 1492M bytes)
pkts bytes target prot opt in out source
destination
0 0 pop3 udp -- any any anywhere anywhere
udp spt:pop3
43 8436 pop3 tcp -- any any anywhere anywhere
tcp spt:pop3
Chain pop3 (4 references)
pkts bytes target prot opt in out source
destination
40 1837 tcp -- any any anywhere anywhere
tcp dpt:pop3
0 0 udp -- any any anywhere anywhere
udp dpt:pop3
0 0 udp -- any any anywhere anywhere
udp spt:pop3
9 434 tcp -- any any anywhere anywhere
tcp spt:pop3
----------------------------------------------------------------------------
------
Wohoo got a lit big... but i think i got all traffic passing my NIC... do u
think so too?
Nice morning, nice day :)
Greetings
Stephan
> -----Ursprungliche Nachricht-----
> Von: netfilter-admin@lists.samba.org
> [mailto:netfilter-admin@lists.samba.org]Im Auftrag von Patrick Schaaf
>
>
> 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:10 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
2002-06-23 8:10 ` yomega [this message]
2002-06-23 8:09 ` AW: " 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=NFBBLDBMIDIOFPBNLEAJKEKECHAA.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