Discussion in 'Tomato Firmware' started by dallen, Jan 24, 2014.

  1. dallen

    dallen Reformed Router Member

    I apologize if this questions has already been answered. I have searched multiple forums to no avail. I am wanting to be able to remotely access all four drives on a NAS device behind my router using SSH with public key authentication. I am able to authenticated and access the router remotely, but the only method that I found for being able access the drives in the NAS is by using CIFS. I am alright with that, but the Tomato Shibby firmware that I use only has an option for setting up two CIFS.

    Is there a way to add more CIFS? If so, how?

    Is there an alternative and/or superior method of accomplishing my goal?

    Thanks in advance for any guidance.
  2. darkknight93

    darkknight93 Networkin' Nut Member

    check for Mount command in Linux ;)
  3. leandroong

    leandroong LI Guru Member

    You can set them up as NFS server and use mount to access them.
  4. dallen

    dallen Reformed Router Member

    I see the page to set up NFS server, but I have been unable to successfully set it up. I must be doing something wrong. Do you know of a good tutorial or reference for setting them up correctly. Once I get them set up as NFS server, to access them via SSH would I have to mount them to access them every time?

    I am a Linux noob if you can't tell.
  5. mvsgeek

    mvsgeek LI Guru Member

    Are you invoking your SSH access from Windows or Linux? If Windows, it should be possible, using PuTTy, to create multiple CIFS mounts from a command prompt. That way you're not limited to just 2. Disclaimer: I've only done it for 1, which was all I needed. I can post some command file code if relevant.
    darkknight93 likes this.
  6. koitsu

    koitsu Network Guru Member

    The trick/complexity is that he's trying to access CIFS mounts in the following fashion:

    client <--> WAN (via SSH) <--> router <--> LAN <--> NAS device

    The only solution I can think of -- and I don't think this would work correctly for multiple reasons -- is to use an SSH port forward/tunnel (in PuTTY) to forward {lan-ip-of-NAS-device}:445 to localhost:445, and then on client access \\ as the CIFS share. You can't use an alternate port in CIFS shares either.

    The problem is that NetBIOS uses other ports -- 137, 138, and 139 -- and I believe some are UDP-based (which you can't forward via SSH). So I think you need a lot more than just an SSH tunnel:

    Heck if I know though. CIFS is not a very friendly protocol for this. Neither is NFS (don't let anyone tell you it is -- it isn't. NFS and RPC/portmap are the most anti-NAT and anti-firewall and anti-multi-interface protocols I've dealt with aside from FTP/IRC DCC/etc.).
    xips_ likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice