From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] IMQ + HTB + little script problem
Date: Fri, 17 Jun 2005 11:03:25 +0000 [thread overview]
Message-ID: <42B2ADFD.9060501@dsl.pipex.com> (raw)
In-Reply-To: <42B25947.6000501@inticomp.com>
s.az wrote:
> I want to shape the incoming traffic ( download ) "but using only
> fwmark", i know there are other methods, but i want to use this one
> particularly...
>
> So, first i create DOWNLOAD and mark with 20 all the traffic with
> destination 10.0.0.3 ( eth1 ) incoming from my internet device ( eth0 ).
>
> #$IPTABLES -t mangle -N DOWNLOAD
> #$IPTABLES -t mangle -I PREROUTING -i eth0 -j DOWNLOAD
> #$IPTABLES -t mangle -A DOWNLOAD -d 10.0.0.3 -p tcp -m tcp -j MARK
> --set-mark 20
> #$IPTABLES -t mangle -A DOWNLOAD -j IMQ --todev 0
PREROUTING mangle is before de-nat so you won't see local addresses.
If you really need to use imq then you can get it to hook after
PREROUTING nat - but you still can't use marks.
If you only want to shape forwarded traffic then you can do it on eth1
without needing imq. You could mark or CLASSIFY in FORWARD.
If you classify you don't need any filters with htb you can do similar
with mark and an empty fw filter on the root eg.
$TC filter add dev eth1 parent 1: protocol ip prio 5 fw
then a mark 0x10010 would get sent to class 0x1:10
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2005-06-17 11:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-17 5:01 [LARTC] IMQ + HTB + little script problem s.az
2005-06-17 11:03 ` Andy Furniss [this message]
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=42B2ADFD.9060501@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.