Routing traffic thru the 2 different NIC's on a Mac Pro ?

Hi Forum,

I've got a question about internal routing options on a Mac with 2 network interfaces, in my case a Mac Pro with double ethernet.

Would it be possible to configure some kind of routing depending either on the application (i.e. Safari would use NIC1, FireFox NIC2) or on the destination IP (i.e. NIC1 for the local LAN and NIC2 for all internet use) ?

Maybe I'm lucky and there is a 3rd party tool which allows to do so ?

Thanks in advance for all hints!

Mac Pro 2.66, MacBook Pro 2.4, Mac mini 1.5, etc..., Mac OS X (10.5.3)

Posted on Jun 17, 2008 5:39 AM

Reply
3 replies

Jun 17, 2008 6:15 AM in response to aladdin

aladdin wrote:
Would it be possible to configure some kind of routing depending either on the application (i.e. Safari would use NIC1, FireFox NIC2) or on the destination IP (i.e. NIC1 for the local LAN and NIC2 for all internet use) ?


If you connect your two NICs in different networks (that is, different subnetworks) then the traffic is automatically going to the correct NIC (i.e. NIC1 for the local LAN and NIC2 for all internet use).
Please ask your Network Administrator for more information about it.

Mihalis.

Jun 17, 2008 8:11 AM in response to aladdin

1) You can't have two interfaces in the same subnet. It's not supported, so you have to lose this anyway (put each interface in a different subnet). What do you think you'll gain by having two NICs in the same subnet?

2) Routing it based on destination IP address (i.e. where you're trying to get to), not port (e.g. you can't say 'send all port 80 (web) traffic over this port and all email traffic over that port'), or application (e.g. 'Safari go this way, Firefox go that').

This second statement means that you can say 'local LAN on NIC 1, external networks on NIC2)', but it still requires each NIC to be in a different subnet.

Other than that, your options are:

1) hack the firewall, using the internal NAT to divert traffic into different subnets (rumored to work in 10.4, but purportedly not in 10.5)

2) install a proxy server on one subnet and relay all web traffic through the proxy

3) install some kind of virtualization environment where you can run two instances of Mac OS X, each with a different network configuration.

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.

Routing traffic thru the 2 different NIC's on a Mac Pro ?

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