David Schwartz a écrit :
> I would suggest intercepting the 'bind' and 'connect' calls with a
> preloaded library.
Humm, does not look like a sane method. (especially when the demons fork
themselves, and/or fork other processes)
Selecting a different route is possible apparently in IPv4 using
rt_tables selection and different interfaces aliases (iface:0, ..), but
even in this case the source address has to be hacked (rewritten) using
some NAT hack.
The RFC 3484 method (a quick overview at
<http://www.davidc.net/networking/ipv6-source-address-selection-linux>)
specify that "If the eight rules fail to choose a single address, some
unspecified tie-breaker should be used"
If this "unspecified tie-breaker" could be defined using a rule, it
would solve the problem. But apparently this is not possible