Check out iproute2, you can do this stuff with it. You need to make sure your kernel is compiled with proper support for it, but it's built-in and not an external patch.
It works something like: ip rule add from 10.0.0.5 table here ip route add dev eth3 table here This is an approximation, the idea is that there is a global lookup table of rules, and then there is a table for each rule. The regular "route" command goes to the "main" table, which is the lowest priority so you can insert the rules of your wishes before that. I'm using it for it's firewall mark feature to tunnel data between two computers and it works beatifully. Baruch On Fri, Sep 13, 2002 at 09:35:21AM +0300, Eli Marmor wrote: > Is there any way to tell "route" to route packets through different > interfaces (gateways) according to the source address? > Or according to another attribute of the packet? > > Thanks, > -- > Eli Marmor > [EMAIL PROTECTED] > CTO, Founder > Netmask (El-Mar) Internet Technologies Ltd. > __________________________________________________________ > Tel.: +972-9-766-1020 8 Yad-Harutzim St. > Fax.: +972-9-766-1314 P.O.B. 7004 > Mobile: +972-50-23-7338 Kfar-Saba 44641, Israel ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
