You must use policy routing to implement this. Your problem is that there's only one routing table, and only one default route on each machine.
See the documentation on iproute2. -alex On Sat, 18 May 2002, Roberto Campos wrote: > Hi, > > I have a firewall (RH 7.2) and it's working fine. > It has 3 NICs one for the internal network and the other two > goes for each of my two Internet Links. > > In my internal network i have a few machines running services > like WWW, SMTP, etc... > > Each of those machines have two associated IPs, one for each > of my internet links, let's say 192.168.0.xxx and 10.10.0.xxx > for each machine. > > The problem goes here: > > When the machine receives a request for answer from the 10.10.0 > network it cames in directed to let's say 10.10.0.35 (the one at > eth0:0) it answers using the other ip (the one at eth0) > > How can i correct this behavior? > > Thanks. > > Roberto Campos > ____________________________________________ > Meu Provedor Tecnologias e Inform�tica Ltda. > Rua Camerino, 128 Grs. 302 > Centro - Rio de Janeiro - RJ - CEP 20080-010 > Tel.: 55 21 25181011 (PABX/FAX) > Telefone M�vel - Celular: 55 21 91978284 > > > ! > >
