Skip to contentSkip to conversation

second routing decision--when?

LARTC Egon Eckert 2 participants 2 messages Apr 29, 2004 – Apr 30, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to mark locally generated packets in the OUTPUT chain and do policy based routing (selecting one of two default gateways) based on the mark value.

But when the packet hits the OUTPUT chain (in 'mangle' table), the routing decision seems to be already made. AFAIK, locally generated packets do not pass the PREROUTING chain (so trying to mark them there wouldn't help me either).

Any ideas?

Sorry, haven't found this in the archive. :-)

Thanks in advance,

Signature · 4 lines
Egon Eckert, Prague, Czech rep.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

Unfortunately, not that easy.

Look at ipt_ROUTE (from netfilter) to do it.

-alex

Quoted 11 lines · Egon Eckert

Hi,

I'd like to mark locally generated packets in the OUTPUT chain and do policy based routing (selecting one of two default gateways) based on the mark value.

But when the packet hits the OUTPUT chain (in 'mangle' table), the routing decision seems to be already made. AFAIK, locally generated packets do not pass the PREROUTING chain (so trying to mark them there wouldn't help me either).

Quoted 7 lines

Any ideas?

Sorry, haven't found this in the archive. :-)

Thanks in advance,

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/