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: Thu, 28 Apr 2005 19:25:41 +0000 [thread overview]
Message-ID: <427138B5.9080103@dsl.pipex.com> (raw)
In-Reply-To: <1114612565.6651.13.camel@callisto>
Ron McKown wrote:
> Hi Andy,
> I've followed your advice and it works brilliant. However, I did fail
> to mention something else which is causing a problem:
>
> Internet - eth0 - eth1 users (192.168.x.x)
> local net- eth2 (10.0.x.x)
>
> There is another interface in this router (eth2) that should not be
> shaped at all (it goes to another local network).
>
> My problem is, I can shape Internet traffic going to user on eth1
> (down), and user traffic going to Internet on eth0 (up).
> However, if the downspeed is being shaped on the eth1, that means that
> customers wanting something from eth2 will also be shaped.
>
> I thought maybe I could only mark packets with a destination to eth0,
> which means packets going to eth2 would be left untouched, but that
> doesn't appear to work, or maybe I'm making a mistake.
>
> here's my marking rule:
> iptables -t mangle -A POSTROUTING --src 192.168.0.84 -o eth0 -j MARK --
> set-mark 34
I would change marking to FORWARD you can use -i and -o then so for
upload from eth1 to internet.
iptables -t mangle -A FORWARD -i eth1 -o eth0 -j MARK -- set-mark 34
and download
iptables -t mangle -A FORWARD -i eth0 -o eth1 -j MARK -- set-mark 34
>
> and here's the cbq rules (should I be using HTB for this??)
I always use htb because it's what I am used to - I never really played
around with CBQ so can't say it's better or worse.
When I first read LARTC it said HTB was easier - so that's what I used.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2005-04-28 19:25 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
2005-04-28 14:10 ` Ron McKown
2005-04-28 19:25 ` 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=427138B5.9080103@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.