Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › RPi - Accessing a Samba Share over the internet?
New Posts  All Forums:Forum Nav:

RPi - Accessing a Samba Share over the internet?

post #1 of 17
Thread Starter 
I've been playing around with my Raspberry Pi over the weekend which is now 150 miles away at home. It's running a Samba server which is accessible over the local network at home, but I want to be able to access it over the Internet too - i.e, I want it to either show up on my network places, or to be able to map it as a network drive.

The problem is that I can't figure out how to go about it. I've been looking at SSH tunnelling, but I'm not sure how to go about that or how it would work and I keep coming up to new stuff I've not come across before (CIFS, NetBIOS, etc) and I can't tell what the best solution would be for something like what I'm trying to do.

Can anyone get me started in the right direction?

Thanks.
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
post #2 of 17
Quote:
Originally Posted by [Adz] View Post

I've been playing around with my Raspberry Pi over the weekend which is now 150 miles away at home. It's running a Samba server which is accessible over the local network at home, but I want to be able to access it over the Internet too - i.e, I want it to either show up on my network places, or to be able to map it as a network drive.

The problem is that I can't figure out how to go about it. I've been looking at SSH tunnelling, but I'm not sure how to go about that or how it would work and I keep coming up to new stuff I've not come across before (CIFS, NetBIOS, etc) and I can't tell what the best solution would be for something like what I'm trying to do.

Can anyone get me started in the right direction?

Thanks.

Sshfs accomplishes what you wish for in a very secure manner. This won't give you samba access but it will give you access to the files in a normal manner over the internet.
Edited by Xaero252 - 5/8/13 at 3:46pm
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
post #3 of 17
+1 for sshfs, though you need to be running a Linux client as well (AFAIK there's no way to use sshfs from Windows).

The other option is installing a VPN server on your Pi and connecting that way. I wouldn't bother with ssh tunneling in this instance (it is possible, but it's more hassle than it's worth)
post #4 of 17
Wouldn't FTP work as a mounted share? Dunno if SFTP can be mounted in windows, or how secure you need this to be.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #5 of 17
Quote:
Originally Posted by mushroomboy View Post

Wouldn't FTP work as a mounted share? Dunno if SFTP can be mounted in windows, or how secure you need this to be.

Please don't advocate FTP. People need to stop using that crappy technology.
post #6 of 17
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

+1 for sshfs, though you need to be running a Linux client as well (AFAIK there's no way to use sshfs from Windows).

The other option is installing a VPN server on your Pi and connecting that way. I wouldn't bother with ssh tunneling in this instance (it is possible, but it's more hassle than it's worth)

I'm using Windows on my main rig, so that throws sshfs out the window.
VPN, I can do - installing a VPN server shouldn't be too challenging, but then what?
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
Echo
(8 items)
 
   
CPUMotherboardGraphicsRAM
Intel Core i5-3570K Asus Maximus V Gene Asus Radeon HD 7970 3GB Mushkin Blackline 16GB 
Hard DriveHard DriveCaseOther
2x Samsung 830 256GB Seagate Barracuda 3TB Silverstone Temjin TJ08-E BeQuiet E9-700w 
CPUMotherboardRAMHard Drive
Intel i3-3225 ASUS P8B75-MLX Corsair Ballistix Tactical Western Digital Red 
OSPowerCaseOther
Ubuntu Corsair CX500M Norco RPC-4224 LSI SAS 9207-4i4e HBA 
Other
Chenbro CK22804 24-Port SAS Expander Card 
  hide details  
Reply
post #7 of 17
Quote:
Originally Posted by [Adz] View Post

I'm using Windows on my main rig, so that throws sshfs out the window.
VPN, I can do - installing a VPN server shouldn't be too challenging, but then what?

Then you VPN in: https://en.wikipedia.org/wiki/Virtual_private_network

I don't run Windows so couldn't tell you how to do that, but it shouldn't be difficult as millions of Windows PCs use VPN every day.
post #8 of 17
Sshfs works on windows... It's not 100% stable but I've used it.
Http://code.google.com/p/win-sshfs/

It's fairly simple to configure.
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 920 D0 4.2ghz HT (1.3625v) Asus R3E 2xGTX 460 (non SLi, no overclock) 6x2gb G.skill @ 6-8-6-24-1T 
Hard DriveOptical DriveOSMonitor
WD-VR 300GBx1, 2xWD 1tb,2x60gb Agility Some crappy combo burner... Arch x64 3xDell U2410f rev A02 
KeyboardPowerCaseMouse
X-Armor U9BL TT Toughpower 1200w (NTB more efficient) Mountain Mods Pinnacle 24 CYO Roccat Kone (R.I.P. A4Tech x7) 
Mouse Pad
Steelpad Experience I-1 
  hide details  
Reply
post #9 of 17
I have always liked DAV for this purpose .. it has good support in linux/mac/windows .. pretty easy to setup as well & secure, but you should still run your connection from IP address A to B through OpenVPN. thumb.gif

http://doc.owncloud.org/server/5.0/user_manual/files/files.html
http://en.wikipedia.org/wiki/OpenVPN
stable again
(25 items)
 
  
CPUCPUMotherboardGraphics
E5-2687W E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) 
GraphicsRAMHard DriveHard Drive
EVGA GTX 970 FTW (win7 guest) 64GB G.SKILL 2133 2x Crucial M4 256GB raid1 4x 3TB raid 10 
CoolingCoolingCoolingCooling
2x Apogee HD  2x RX 480 2x MCP 655 RP-452x2 rev2 (new) 
CoolingCoolingOSOS
16x Cougar Turbine CFT12SB4 (new) EK FC 580 Gentoo (host) Gentoo (x23 guests) 
OSMonitorMonitorPower
windows 7 (guest w/ vfio-pci) Viewsonic 23" 1080P Viewsonic 19" Antec HCP Platinum 1000 (new) 
CaseOtherOther
Case Labs TH10 (still the best ever) 2x Lamptron FC-5 IOGEAR 2 way DVI KVM Switch 
  hide details  
Reply
stable again
(25 items)
 
  
CPUCPUMotherboardGraphics
E5-2687W E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) 
GraphicsRAMHard DriveHard Drive
EVGA GTX 970 FTW (win7 guest) 64GB G.SKILL 2133 2x Crucial M4 256GB raid1 4x 3TB raid 10 
CoolingCoolingCoolingCooling
2x Apogee HD  2x RX 480 2x MCP 655 RP-452x2 rev2 (new) 
CoolingCoolingOSOS
16x Cougar Turbine CFT12SB4 (new) EK FC 580 Gentoo (host) Gentoo (x23 guests) 
OSMonitorMonitorPower
windows 7 (guest w/ vfio-pci) Viewsonic 23" 1080P Viewsonic 19" Antec HCP Platinum 1000 (new) 
CaseOtherOther
Case Labs TH10 (still the best ever) 2x Lamptron FC-5 IOGEAR 2 way DVI KVM Switch 
  hide details  
Reply
post #10 of 17
Quote:
Originally Posted by lloyd mcclendon View Post

I have always liked DAV for this purpose .. it has good support in linux/mac/windows .. pretty easy to setup as well & secure, but you should still run your connection from IP address A to B through OpenVPN. thumb.gif

http://doc.owncloud.org/server/5.0/user_manual/files/files.html
http://en.wikipedia.org/wiki/OpenVPN

If you have to DAV over VPN then you might as well just use the SMB share (or use sshfs and do away with the VPN altogether).

Also, who cares about Windows. It's not like anybody actually uses that OS tongue.gif
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › RPi - Accessing a Samba Share over the internet?