Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: useing mangle to mark packets
Date: Wed, 25 May 2005 08:41:04 -0400	[thread overview]
Message-ID: <20050525124104.GA16703@bender.817west.com> (raw)
In-Reply-To: <4294256F.2060007@konabi.de>

On Wed, May 25, 2005 at 09:12:47AM +0200, Sven Neukirchner wrote:
> iptables -t mangle -o $DEV -A POSTROUTING -p ICMP -j MARK --set-mark 1
> 
> Is there a way to check if the packets get marks?
> 
> I tryed following:
> 
> iptables  -A FORWARD   -p ICMP -m mark --mark 1 -j LOG --log-prefix 
> "mark " --log-level 6
> 
> But it doesnt work.

because mangle:POSTROUTING is traversed after filter:FORWARD.

> I want to set up traffice shaping using tc.
> So I need to mark packets so I can put them in order.

mark your packet in either mangle:PREROUTING or mangle:FORWARD.

-j

--
"Susan Sarandon: I'm Susan Sarandon. Most of you know me as Tim
 Robbins' mother, but actually I'm his wife!"
        --Family Guy


  reply	other threads:[~2005-05-25 12:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-25  7:12 useing mangle to mark packets Sven Neukirchner
2005-05-25 12:41 ` Jason Opperisano [this message]
2005-05-25 18:19   ` Http connections left in FIN_WAIT1 Brian Atkins

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=20050525124104.GA16703@bender.817west.com \
    --to=opie@817west.com \
    --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