From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: Re[2]: Counting traffic - another question
Date: Tue, 27 Jul 2004 15:26:15 +0100 [thread overview]
Message-ID: <200407271526.15564.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <1368880926.20040727155717@op.pl>
On Tuesday 27 July 2004 2:57 pm, Marcin Sura wrote:
> Tuesday, July 27, 2004, 2:59:13 PM, you wrote:
> > No need to MARK the packets (unless you want the MARKs for something
> > else?),
>
> Yes, I need MARKs for traffic shaping. Sorry, I forgot to mention this.
Okay, no problem, continue MARKing them then, but I still think you can count
them in FORWARD mangle.
> > and you can specify input & output interface in the FORWARD table to
> > identify which way through your firewall the packets are going.
>
> Ok, so I change the rules (i still use statsin and statsout for ...
> hmm ... order :)
>
> $IPTABLES -t mangle -A FORWARD -i $LOCAL_IF -o $INET_IF -j statsout
> $IPTABLES -t mangle -A FORWARD -i $INET_IF -o $LOCAL_IF -j statsin
No, don't put the "-j statsout" or "-j statsin" at the end. The rule I
suggested previously is actually complete:
iptables -A FORWARD -t mangle -i eth0 -o ppp0 -p tcp --dport ssh
You do not need to have a "-j target" at the end of a rule if you don't want
one. The above rule will still count the packets, and you can see the
packet/byte counters with "iptables -L FORWARD -t mangle -nvx".
Regards,
Antony.
--
"It would appear we have reached the limits of what it is possible to achieve
with computer technology, although one should be careful with such
statements; they tend to sound pretty silly in five years."
- John von Neumann (1949)
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-07-27 14:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-27 12:34 Counting traffic - another question Marcin
2004-07-27 12:59 ` Antony Stone
2004-07-27 13:52 ` Re[2]: " Marcin Sura
2004-07-27 13:57 ` Marcin Sura
2004-07-27 14:26 ` Antony Stone [this message]
2004-07-27 15:27 ` Re[4]: " Marcin Sura
2004-07-27 21:57 ` Marcin Sura
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=200407271526.15564.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--cc=netfilter@lists.netfilter.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