Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

msvadi

macrumors 6502
Original poster
Aug 12, 2010
368
69
Hi,

I would like to use wired internet connections in my office with an iMac to which I will be soon adding a Mac Pro. Unfortunately, there is only one data point in my office. If the fist gigabit port on the Mac Pro is connected to the data point, can I use the second gigabit port to share internet with the iMac?

If this setup works, would it be possible to connect via ssh to both Mac Pro and iMac? I would really like to have this ability.

Thanks
 
- system preferences
- internet sharing
- share connection from ethernet 1 to ethernet 2

Done.

Thanks, this is helpful and sounds very easy.

How about SSH? Would it be possible to SSH to the iMac from a remote computer? (the iMac will be using shared internet connection from the Mac Pro).
 
How about SSH? Would it be possible to SSH to the iMac from a remote computer? (the iMac will be using shared internet connection from the Mac Pro).

It looks like there is no GUI interface for port forwarding in OS X, but I found a couple of possible solutions (a script and third party software):

http://www.cyberciti.biz/faq/howto-configure-macosx-as-nat-router/
http://www.hanynet.com/icefloor/

Icefloor software seems pretty cool, may be I won't need a router.
 
Yes. Also in System Preferences, Sharing. Enable "Remote Management".

I don't follow. As far as I understand, to SSH to computers behind a router, one needs to setup port forwarding (in the router) since they all share the same public IP. Do you mean that there is port forwarding interface somewhere in Remote Management? Or that there are other means of directing SSH traffic to the right computer?
 
Ah, you want to hit this iMac from outside the LAN as well. Would be easiest to:

- get a static IP from your ISP
- get a proper router and / or switch at the iMac location
- ??
- profit

If you're so inclined you can dig into ipfw man pages and set up the forwarding. Unless you really want to learn the ins and outs of routing and port forwarding, I'd go with what I suggested.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.