i have a linux router that is also acting as an SMTP mail server. the linux
system has three network interfaces. one to the local ethernet, one to a dsl
connection, and one to an isdn connection.
by default, all traffic goes out the dsl connection.
there are a few static routes to networks that are on the other end of the isdn
link. i would like to force all outgoing smtp packets to go out the isdn
interface as well, without making this the default route.
i have looked at the various advanced routing howtos and have not been able
to make this work.
i've set up ipchains to set an fwmark value for outgoing smtp packets.
then i use the 'ip' utility to add a rule for that fwmark value and reference
that to a separate routing table.
in that routing table, i set the default gateway to be the isdn link. when i
do this, all of my smtp traffic is still going out the dsl interface.
any ideas?
thanks,
marc
--