View Single Post
Old 26th December 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

So, what you are wanting to do is mess about with routing so that packets generated by the local machine are sent through one interface, but packets coming from remote machines are redirected to another? I fail to see the point, and I do not know if it is possible without hacking the routing code.

netstat -rn will tell you what your current routing tables are. With simple routing, the last dhclient to bind to an address will probably have set the default route to the gateway it was set to. Maybe dhclient is another place you could hack.

You are lucky that you have been given addresses in different subnets. If you are given addresses in the same subnet, you will have different problems (2 interfaces on the same subnet is logically wrong, even if most system handle it gracefully)
Another place to look is routed, the routing daemon. This uses things like RIP and SAP to determine the best interface to send packets on.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote