LARTC
[Top] [All Lists]

[LARTC] Re: Example on using fwmark with masks. Please help!!

To: lartc@mailman.ds9a.nl, netfilter@lists.netfilter.org
Subject: [LARTC] Re: Example on using fwmark with masks. Please help!!
From: "ArcosCom Linux User" <linux@arcoscom.com>
Date: Sun, 14 Jan 2007 22:19:55 +0100 (CET)
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Importance: Normal
In-reply-to: <52633.84.123.236.132.1168633590.squirrel@www.arcoscom.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <52633.84.123.236.132.1168633590.squirrel@www.arcoscom.com>
Reply-to: linux@arcoscom.com
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: SquirrelMail/1.4.8-1.3.3
Any help?

El Vie, 12 de Enero de 2007, 21:26, ArcosCom Linux User escribió:
> Hi,
>    could anyone provides any example about the use of ip route command to
> force the use of one route using masks in the mark?
>
> The configuration is:
>    1 LAN (zlan0) iface
>    N WAN (wan0 ... wanN) ifaces with static IPs and load balanced.
>    iptables 1.3.7
>    kernel 2.6.19.2
>    iproute 2.6.19
>
> I'm yet setting marks into packets for QoS and its working, I now want to
> set some bits (OR) at the end of the mark.
>
> For example, I want to use 0x8000 to add another mark to the packet for
> routing. The packet is market yet with a QoS mark (--set-mark), 0x5 (for
> example).
>
> I need:
>    1) The packet been marked with 0x8000 OR 0x0005 = 0x8005
>    2) Route the packet with 0x8005 AND 0x8000 = 0x8000 over wan0 (for
> example)
>    3) Classify the packet with 0x8005 AND 0x0005 into wan0 1:4 class (for
> example)
>
> I know how to do this not having sense about MASKs, but ... Could anybody
> put here how to do it with them?
>
> Another question: What is the length of the mask? 16bit? 32bit?
>
> Thanks!!
>
>
>
>
>
>


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

<Prev in Thread] Current Thread [Next in Thread>