Internet Sharing - access NAS from another computer?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by shoebobs, May 26, 2018.

  1. shoebobs macrumors regular

    Joined:
    Jul 5, 2008
    #1
    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
     
  2. techwarrior macrumors 65816

    techwarrior

    Joined:
    Jul 30, 2009
    Location:
    Colorado
    #2
    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.
     
  3. shoebobs thread starter macrumors regular

    Joined:
    Jul 5, 2008
    #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?
     
  4. NissarK macrumors newbie

    NissarK

    Joined:
    May 26, 2018
    #4
    Did you ever get this clarified?
     
  5. techwarrior macrumors 65816

    techwarrior

    Joined:
    Jul 30, 2009
    Location:
    Colorado
    #5
    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.
     
  6. shoebobs thread starter macrumors regular

    Joined:
    Jul 5, 2008
    #6
    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.
     
  7. sevoneone macrumors 6502

    Joined:
    May 16, 2010
    #7
    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.
     

Share This Page