On Thursday 29 July 2004 11:29 pm, Joao Alberto M. dos Reis wrote: > Hi, > > I have the following: > 1 linux box with 2 valid IPs with different gateways each. > > I need to port forward different ports inside my network to different > machines. > > I have set a default gateway to the first link and created a routing > table for the second link pointing to the second gateway. but when I > make my portforward to this second link, the packets try to leave by the > first gateway. > > How can I fix that? Did you use iproute2 rules for this? http://lartc.org Regards, Antony. -- Never write it in Perl if you can do it in Awk. Never do it in Awk if sed can handle it. Never use sed when tr can do the job. Never invoke tr when cat is sufficient. Avoid using cat whenever possible. Please reply to the list; please don't CC me.