On Thu, 5 Aug 2004, Joao Rochate wrote:
Destination Gateway Genmask Flags Metric Ref Use Iface 6.4.18.160 0.0.0.0 255.255.255.240 U 0 0 0 eth0 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 6.4.18.174 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 10.10.10.252 0.0.0.0 UG 0 0 0 eth1
You also must define policy routing to tell the kernel to use the correct default route depending on the souce IP address. If not your OS will still send the traffic out via the first default route even if the souce IP assigned by the application (Squid) belongs to another interface.
See Linux Advaced Routing HOWTO for details.
Regards Henrik
