All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] do I need to iptables mark in this scenario?
Date: Wed, 27 Apr 2005 20:24:24 +0000	[thread overview]
Message-ID: <426FF4F8.8060705@dsl.pipex.com> (raw)
In-Reply-To: <1114612565.6651.13.camel@callisto>

Ron McKown wrote:

> After lots of reading on the mailing list archive, it appears the best
> way to handle this is to mark packets from each user, then on eth0 have
> HTB or CBQ (really unsure which to use) shape each marked packet
> accordingly.  Currently, I'm matching by IP (u32?), so should I match by
> fwmark instead?

Yes you could do that or if you are using recent kernel/iptables you can 
classify directly.

http://www.netfilter.org/patch-o-matic/pom-submitted.html

If you need to use mark just do something like

$IPTABLES -t mangle -A POSTROUTING --src 192.168.0.4 -j MARK --set-mark 34

and then match it with a filter on eth0

$TC filter add dev eth0 parent 1:0 prio 6 protocol ip handle 34 fw 
flowid 1:34

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2005-04-27 20:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-27 14:36 [LARTC] do I need to iptables mark in this scenario? Ron McKown
2005-04-27 14:49 ` Sylvain BERTRAND
2005-04-27 20:24 ` Andy Furniss [this message]
2005-04-28 14:10 ` Ron McKown
2005-04-28 19:25 ` Andy Furniss

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=426FF4F8.8060705@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=lartc@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.