Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

Internet Sharing - access NAS from another computer?

shoebobs

macrumors regular
Original poster
Jul 5, 2008
240
103
I built a NAS and have Ubuntu 18.04 on it. Eventually I will have ethernet wired to hook the NAS directly into my network, but until then I am using Internet Sharing from a Mac Mini Server (10.12.6) to provide internet access to the NAS (for installing packages, patches etc).

I am able to connect/SSH to the NAS from the Mac Mini (via the NAS' private IP of 192.x.x.x). However, I am unable to figure out how to connect to the NAS from any other machines on my network. Do I need to access it via the Mac Mini's IP on a certain port? Do I need to configure something on the NAS? I don't have a ton of knowledge on networking.

In case it matters, here is the exact setup info:
  • Mac Mini Server is connected to an Airport Extreme over Wifi
  • Mac Mini Server is sharing it's internet connection over the Thunderbolt Ethernet Port
  • NAS is connected via an ethernet cable from the Thunderbolt Ethernet Port
 

techwarrior

macrumors 65816
Jul 30, 2009
1,218
465
Colorado
Never done a connection sharing with TB.

I have done ETH > WiFi and the connection the Mac shared (WiFi) was on a different subnet than the ETH port.

In other words, the Mac sets itself up as a NAT device for hosts that connect to it's shared network. In this case, the IP Address on the NAS would not be routable from the rest of the LAN. My guess is, the Mac's WiFi address is not on the same subnet as the NAS.
 

shoebobs

macrumors regular
Original poster
Jul 5, 2008
240
103
Never done a connection sharing with TB.

I have done ETH > WiFi and the connection the Mac shared (WiFi) was on a different subnet than the ETH port.

In other words, the Mac sets itself up as a NAT device for hosts that connect to it's shared network. In this case, the IP Address on the NAS would not be routable from the rest of the LAN. My guess is, the Mac's WiFi address is not on the same subnet as the NAS.

Yes - I believe they are on different subnets (once again, I'm not a network guy so not 100% sure) - the Mac has an ip of 10.0.1.x (provided by the Airport Extreme), and the NAS is 192.168.2.x. Is there any way to bridge the two?
 

NissarK

macrumors newbie
May 26, 2018
9
3
Yes - I believe they are on different subnets (once again, I'm not a network guy so not 100% sure) - the Mac has an ip of 10.0.1.x (provided by the Airport Extreme), and the NAS is 192.168.2.x. Is there any way to bridge the two?

Did you ever get this clarified?
 

techwarrior

macrumors 65816
Jul 30, 2009
1,218
465
Colorado
the Mac has an ip of 10.0.1.x (provided by the Airport Extreme), and the NAS is 192.168.2.x. Is there any way to bridge the two?

Those are different subnets, absolutely.

The 192 network the NAS is on is as inaccessible to hosts on the 10.0.1.x network as the 10.0.1.x devices are from the internet. The ICS on the MAC is creating a "router" and protects the devices connected to the shared network interface the same way your home router does.

ICS is not meant to be a full feature router. Bridging these networks is probably not in the cards, just connect the NAS to the main network and be done with it.
 

shoebobs

macrumors regular
Original poster
Jul 5, 2008
240
103
Those are different subnets, absolutely.

The 192 network the NAS is on is as inaccessible to hosts on the 10.0.1.x network as the 10.0.1.x devices are from the internet. The ICS on the MAC is creating a "router" and protects the devices connected to the shared network interface the same way your home router does.

ICS is not meant to be a full feature router. Bridging these networks is probably not in the cards, just connect the NAS to the main network and be done with it.

Thanks - yeah I was hoping to avoid buying a wireless card for my NAS, or an access point to serve as an ethernet hub, but will probably do so as it'll make things much simpler. At least until I have ethernet wired which is a ways off.

Appreciate the info/input.
 

sevoneone

macrumors 6502a
May 16, 2010
524
485
You could try setting up a bridge in Network > System Preferences, but, iirc, it won't work where Wifi is the uplink and Ethernet the downlink without NAT because the packets do not get modified and the wireless AP will drop/ignore packets with a MAC address that hasn't authenticated to it. That could be different now though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.