Split traffic between network interface..

I don't know if this is even possible. But I'd like to split traffic on a specific port to another network interface.

So all traffic over port 80 and 21 goes via en1 (Airport) and everything else via en0(cable). Any ideas?

MacBook Core 2 Duo, Mac OS X (10.5.7)

Posted on Jun 12, 2009 1:52 AM

Reply
7 replies

Jun 12, 2009 1:25 PM in response to _fredrik

How I do that? It will work for me


Assuming you have separate router available on each network, like:

en0 - 192.168.1.2/255.255.255.0 with a router at 192.168.1.1
en1 - 10.1.1.2/255.255.255.0 with a router at 10.1.1.1

and a default route of 192.168.1.1, all your traffic will go over en0.

To direct specific destination traffic over the wireless network you use the route command telling it the destination IP address and the router to pass the traffic through.

For example, to route all traffic for 1.2.3.4 through the wireless router you would:

sudo route add 1.2.3.4 10.1.1.1


Now any traffic for 1.2.3.4 will go through the wireless router and everything else will continue to use the wired router.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Split traffic between network interface..

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.