From: Bgs <bgs@bgs.hu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] mark incoming traffic
Date: Mon, 02 Apr 2007 13:21:22 +0000 [thread overview]
Message-ID: <46110352.6000305@bgs.hu> (raw)
In-Reply-To: <4610F0BF.20304@bgs.hu>
Never mind... got it... I will sit down myself :)
Bgs wrote:
>
> Greetings,
>
> I'd like to mark incoming traffic based on TOS to use the mar for
> backtraffic routing. I have two gateways on the same net and incoming
> traffic may arrive from any of them. I want the return packets to go the
> same way. My plan is:
>
> Normal traffic goes through default gw. Traffic from the other has TOS
> 0x08 set. I'd like to mark traffic with TOS and use fwmark awith iproute
> for outbound packets.
>
> My problem is that I can mark based on an incoming property and I need
> the mark on the outbound packets. How can I do this?
>
> Doing "-A INPUT -p tcp -m tos --tos 0x08 -j MARK --set-mark 1" (in
> mangle of course) is not good as the mark is lost. Doing tests with "-A
> OUTPUT -p tcp -d test_client_ip -j MARK --set-mark 1" works ok.
>
> Is there a solution?
>
> Thanks in advance
> Bgs
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2007-04-02 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 12:02 [LARTC] mark incoming traffic Bgs
2007-04-02 13:21 ` Bgs [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=46110352.6000305@bgs.hu \
--to=bgs@bgs.hu \
--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.