W Cardwell wrote:
> This document describes packet marking and routing with iptables and
> iproute2: http://lartc.org/howto/lartc.netfilter.html
>
The document didn't provide a working config, but it did provide a hint
which resulted in a working config. I woulnd up putting the MARK in the
OUTPUT chain of the managle table, forcing the selected packets out of
the correct NIC to the desired gateway. I don't understand how or why
that works, but it does, very nicely.
Thank you again for the pointer, all it took was to MARK all the packets
with a source on the NIC (multiple aliases in the subnet) and not to
another IP in the same subnet, and then force the marked packets to go
out as desired.
That doesn't fit the flow of the packet from the program to the NIC as
explained in several "routing for dummies" type docs, but as long as it
works I'm happy. And more importantly I know how to do it again in
slightly different ways.
--
bill davidsen <(E-Mail Removed)>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979