Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] MARKing according to both net. interfaces?
@ 2001-10-25 13:58 Stephane Bortzmeyer
  2001-10-26  9:43 ` Oskar Andreasson
  2001-10-26  9:56 ` Stephane Bortzmeyer
  0 siblings, 2 replies; 3+ messages in thread
From: Stephane Bortzmeyer @ 2001-10-25 13:58 UTC (permalink / raw)
  To: lartc

[I had no success on the netfilter mailing list so may be here? I
don't think there is a mailing list devoted to tc?]


In order to later shape the traffic with tc, I'm trying to use
iptables to mark traffic with a condition on both network interfaces
(in and out).

iptables -t mangle -A PREROUTING -p tcp -i eth4 -o eth5 -j MARK --set-mark 0x4 

is accepted but ipchains -v shows that no packets are marked. I assume
this is because, in PREROUTING, you don't know the output interface
yet.

1) Am I correct?

2) Why is it accepted if it cannot work?

3) Is there a solution, since the mangle table only has OUTPUT (where
-i is not accepted) and PREROUTING? (FreeBSD zealots keep screaming to
me that it works fine with FreeBSD.)





_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-10-26  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-25 13:58 [LARTC] MARKing according to both net. interfaces? Stephane Bortzmeyer
2001-10-26  9:43 ` Oskar Andreasson
2001-10-26  9:56 ` Stephane Bortzmeyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox