Results 1 to 6 of 6

Thread: Connecting to my samba server

  1. #1
    Join Date
    Mar 2013
    Beans
    2

    Angry Connecting to my samba server

    So I have a samba server setup running on Ubuntu server 12.04. I can connect to it anywhere over the home network. Now I've setup port forwarding and it's on the default port 445. I can connect to it via the router's IP but still only when I'm on the same network. I tried setting up an Apache server on the same computer and router and I can can access the web page from any other network. Help please, am I missing something? a samba config maybe?

  2. #2
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connecting to my samba server

    Quote Originally Posted by amarek View Post
    So I have a samba server setup running on Ubuntu server 12.04. I can connect to it anywhere over the home network. Now I've setup port forwarding and it's on the default port 445. I can connect to it via the router's IP but still only when I'm on the same network. I tried setting up an Apache server on the same computer and router and I can can access the web page from any other network. Help please, am I missing something? a samba config maybe?
    Samba protocols are generally not permitted over the Internet. You need to use a VPN to access Samba outside of your own LAN.
    -BAB1

  3. #3
    Join Date
    Mar 2013
    Beans
    2

    Re: Connecting to my samba server

    Quote Originally Posted by bab1 View Post
    Samba protocols are generally not permitted over the Internet. You need to use a VPN to access Samba outside of your own LAN.
    Okay, thank you for your help. Now since I really don't want to use a VPN is there another type of file server you could suggest?

  4. #4
    Join Date
    Jul 2007
    Beans
    7

    Re: Connecting to my samba server

    You could try to setup a SSH server. There are clients for Windows (i.e. Swish, WinSCP) that will allow easy file access with drag-and-drop functionality.

  5. #5
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

    Re: Connecting to my samba server

    Quote Originally Posted by bab1 View Post
    Samba protocols are generally not permitted over the Internet.
    Not exactly. :) There's nothing about the SMB protocol that would prevent it from working over the Internet. Some providers block default ports utilized by SMB (such as 445) but you can work around that - e.g. by forwarding different ports from your router.

    Still, I agree that SSH/SFTP is a much better idea. You can also use SSH to forward samba ports over a secure tunnel:
    http://simonholywell.com/post/2009/0...sh-tunnel.html

  6. #6
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connecting to my samba server

    Quote Originally Posted by prodigy_ View Post
    Not exactly. There's nothing about the SMB protocol that would prevent it from working over the Internet. Some providers block default ports utilized by SMB (such as 445) but you can work around that - e.g. by forwarding different ports from your router.

    Still, I agree that SSH/SFTP is a much better idea. You can also use SSH to forward samba ports over a secure tunnel:
    http://simonholywell.com/post/2009/0...sh-tunnel.html
    Browsing for shares is the only reason to use Samba. You can't do that easily over the Internet without resorting to using a VPN. As you say it's easier to just use SSH/SFTP.
    -BAB1

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •