Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] iproute + mark question
@ 2002-05-14 14:47 Ciprian Niculescu
  2002-05-14 15:20 ` Daniel K.
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ciprian Niculescu @ 2002-05-14 14:47 UTC (permalink / raw)
  To: lartc

i want to mark the pachets generated localy, and route them differently

so the logic in me was to mark in mangle in PREROUTING, beacouse it's 
PRE, don't work.

someone tell me to try in OUTPUT in mangle, did it and works

so iptables -A OUTPUT -t mangle -p udp --dport 50000:51000 -j MARK 
--set-to 0x1

ip rule add fwmark 0x1 table 230
ip route add default via 194... table 230


why it works

so i undestand that OUTPUT is before ROUTING, so the order is:

gen local -> OUTPUT(mangle) -> routing -> wire

does anybody have the hole packet path, a grafic, with: mangle, nat, 
filter, routing, tc, tunel, for local generated pachetd and for 
FORWARDed pachets???

C


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

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

end of thread, other threads:[~2002-05-15 16:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-14 14:47 [LARTC] iproute + mark question Ciprian Niculescu
2002-05-14 15:20 ` Daniel K.
2002-05-14 15:36 ` Ciprian Niculescu
2002-05-14 15:55 ` Daniel K.
2002-05-14 16:13 ` Ciprian Niculescu
2002-05-14 16:21 ` Julian Anastasov
2002-05-15 16:14 ` Jason A. Pattie
2002-05-15 16:27 ` Ciprian Niculescu
2002-05-15 16:47 ` Jason A. Pattie

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