From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Turley Date: Mon, 10 May 2004 16:47:55 +0000 Subject: Re: [LARTC] MARK target question Message-Id: <409FB23B.1080703@rocksteady.com> List-Id: References: <20040509000035.GA15048@rabbit.us> In-Reply-To: <20040509000035.GA15048@rabbit.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Peter Rabbitson wrote: > This is more of a NF question but it is tightly related to LARTC as well. In the following example: > > -t mangle -A PREROUTING -i eth0 -j MARK 0x1 > .... > -t mangle -A INPUT -i eth0 -j MARK 0x2 > > Since MARK is a non-terminatring target, what would be the resulting mark on a packet comming from the outside and > destined for a local process? The mark would be 0 until the packet hits the first rule. After that, it would be 1 through the remainder of the PREROUTING chains. After routing, it would pass to the INPUT chains where it would change to 2 when it hits the second rule and would remain 2 through the rest of the INPUT chains. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/