From: Simone Leggio <simone.leggio@cs.helsinki.fi>
To: Kim Jensen <kimj@dawn.dk>
Cc: netfilter@lists.netfilter.org
Subject: Re: IP TOS based routing
Date: Thu, 27 Mar 2003 09:32:47 +0200 [thread overview]
Message-ID: <3E82A91F.7000108@cs.helsinki.fi> (raw)
In-Reply-To: 200303261316.35019.kimj@dawn.dk
Kim Jensen wrote:
> On Tuesday 25 March 2003 09:51, Simone Leggio wrote:
>>I'd like to know whether it is possible, and if so how, with traffic
>>control to set filters so that packets with TOS 46 are sent to host B
>>via eth0 and packets with TOS 26 via eth1.
>
> Hi Simone,
>
> Try to use the mangle table to mark your packets which match a
specific TOS,
> and then add a second routing table with the alternative default
connection.
> That should work. You can find more info on:
>
> http://linux-ip.net/html/adv-multi-internet.html
> http://www.ssi.bg/~ja/nano.txt
>
> /Kim
Hi Kim,
thanks for the answer.
At the moment I have a test network where I send traffic from host A to
host B generating it with a proper traffic generator (for example MGEN),
which allows also to set the DS (or IP TOS) field.
Does iptables understand the value set before with the traffic generator
or I have to set the field with the mangle table?
What I was thinking to type to discriminate the output interface was:
iptables -A FORWARD -p tcp -m tos --tos TOS -o INTERFACE -j ACCEPT
With TOS equal to the value set by the traffic generator. Would it work?
Simone.
next prev parent reply other threads:[~2003-03-27 7:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-25 8:51 IP TOS based routing Simone Leggio
2003-03-26 12:16 ` Kim Jensen
2003-03-27 7:32 ` Simone Leggio [this message]
2003-03-27 14:24 ` Rinse Kloek
2003-03-27 15:33 ` Simone Leggio
2003-03-27 14:32 ` Kim Jensen
2003-04-01 19:36 ` Matthew G. Marsh
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=3E82A91F.7000108@cs.helsinki.fi \
--to=simone.leggio@cs.helsinki.fi \
--cc=kimj@dawn.dk \
--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 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.