* [LARTC] MARK target question
@ 2004-05-09 0:00 Peter Rabbitson
2004-05-09 8:42 ` Stef Coene
2004-05-10 16:47 ` Patrick Turley
0 siblings, 2 replies; 3+ messages in thread
From: Peter Rabbitson @ 2004-05-09 0:00 UTC (permalink / raw)
To: lartc
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?
Thanks
P.S. I agree, the example looks stupid, but on the other hand the real life case where this situation occurs is
rather confusing and therefore not very suitable.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] MARK target question
2004-05-09 0:00 [LARTC] MARK target question Peter Rabbitson
@ 2004-05-09 8:42 ` Stef Coene
2004-05-10 16:47 ` Patrick Turley
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2004-05-09 8:42 UTC (permalink / raw)
To: lartc
On Sunday 09 May 2004 02:00, 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?
INPUT is after PREROUTING, so 0x2.
See
http://www.docum.org/stef.coene/qos/kptd/
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] MARK target question
2004-05-09 0:00 [LARTC] MARK target question Peter Rabbitson
2004-05-09 8:42 ` Stef Coene
@ 2004-05-10 16:47 ` Patrick Turley
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Turley @ 2004-05-10 16:47 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-10 16:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-09 0:00 [LARTC] MARK target question Peter Rabbitson
2004-05-09 8:42 ` Stef Coene
2004-05-10 16:47 ` Patrick Turley
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.