Answers to: How does one direct traffic to different network interfaces?http://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces<p>Let's say I have two network interfaces, eth0 and eth1, and I want to route traffic from different applications to either one or the other on demand. </p> <p>How would one do this?</p>enMon, 04 Apr 2011 16:40:41 -0400Answer by rtabhuhttp://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/2268<p>hi what destro do u run i would suggest that you need iptables and may be squid to add some soup and flavors</p>rtabhuMon, 04 Apr 2011 16:40:41 -0400http://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/2268Answer by rtabhuhttp://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/2267<p>you need iptables NAT which destro u u ran anyway????</p>rtabhuMon, 04 Apr 2011 16:39:06 -0400http://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/2267Answer by rfelsburghttp://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/1370<p>We def. need more info, which applications, why do you need to do this, etc.</p> <p>Without that info it's kind of a crap shoot, load balancing, private network/dmz, there are dozens of reason why one would conceivably do this, and the proper ways of doing so differ for quite a few of them.</p>rfelsburgTue, 28 Sep 2010 13:23:34 -0400http://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/1370Answer by Ronhttp://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/1368<p>You can direct different traffic to o different interfaces via iptables, however, iif you're going to use the same port going to the same destination, how then would iptables know which interface to use and when?</p> <p>To me, it seems you're more in need of load balancing, which is what it sounds like you're seeking vs. using etho0 for this and eth1 for that.</p>RonMon, 27 Sep 2010 14:26:41 -0400http://linuxexchange.org/questions/1320/how-does-one-direct-traffic-to-different-network-interfaces/1368