From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josip Gracin gracin@tel.fer.hr Date: Thu, 19 Oct 2000 08:15:28 +0000 Subject: [LARTC] How to mark and queue Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
Hello!

I would like to set up a machine to introduce random (but controllable)
dropping of packets that are being forwarded.  I also need to classify the
traffic because I want some traffic shaping.  The obvious solution is to
QUEUE packets to user level and if they are ACCEPTed, put a MARK
(--set-mark) on them for classifying.  This would seem logical:

iptables -A FORWARD -j QUEUE -j MARK

Of course, it is not possible.  How do I do this than?  That is, how to do
it without using two identical rules, one with QUEUE action and another
with MARK action which does not seem to be a nice solution.

Thanks!
Josip