LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-17-2007, 12:37 PM   #1
netphreak
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Access shared folders outside local LAN


An image always explain better than words - this is the basic (in this matter) of my network:

http://asgeir.net/Image1.gif

Alright, my ISP have "given" me a /29 subnet of public static IP's. Meaning I have 5 static public IP's for my needs Server 1 is a ClarkConnect installation, configured to share folders with help from Samba. I can successfully access these folders from my Windows PC. Now, I would really like to use Server 2 (Debian Sarge) for shared folders. I plan on replacing ClarkConnect with a Pfsense (OpenBSD), and I guess it will be very difficult to have network shares on that box.

So my question is: How do I set up my Debian Sarge box with network folders that can be accessed from clients under Server 1? I'm not hoping for a full blown guide here, but a hint on what alternatives there are! Pros and cons, and maybe a link to good reading?

One guess (remember - I'm not a linux guru like many of you in here!) would be to use NFS with IPSEC? CIFS with OpenVPN? Do I need tunneling? Encryption? It's all just phrases I have picked up after reading and searching the whole day... It's not easy to figure out where to start...

So - thank you for *any* advices, they could all be valuable
 
Old 01-17-2007, 01:20 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
For mounting remote directories between Linux servers I would recommend to use sshfs. It mounts remote directories using an encryption tunnel and even with private keys. You only need to install sshfs on Server1 then mount the remote directory of Server2 on it, like so:

sshfs user1@server2 /var/newdir

If you setup empty keys then you don't have to use a password. However, be sure to limit access using /etc/hosts.allow.

Afterward you can make /var/newdir a share in Samba.
 
Old 01-17-2007, 02:18 PM   #3
netphreak
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Original Poster
Rep: Reputation: 0
sshfs - I will read up un that, thanks for suggestion. Though, I find it hard to believe that no other modifications needs to be done except for editing hosts.allow on my Debian Sarge server? And also, if I plan on replacing ClarkConnect with pfsense (OpenBSD), this could be hard to do. It only have options for OpenVPN and IPSEC...
 
Old 01-17-2007, 11:37 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
With hosts.allow you can limit which workstations are allowed to connect to server2; that way you can tighten security even further for ssh. You may want to include the mount in /etc/fstab if you want it to mount autmatically upon startup. As far as the other Unix brands, it doesn't matter, as long as they have ssh-server running. You only need to setup sshfs on the system that will contain the mounted directory and not on the server that contains the shared directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy way to access Windows shared folders ? robertpolson Linux - Networking 7 01-16-2007 02:51 PM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 06:14 AM
Can access local LAN Webserver, but not Internet spaceuser Debian 11 08-23-2005 12:54 AM
is it possible to access windows xp home shared folders? kahn Linux - Networking 5 07-03-2005 07:01 AM
access to mail on local lan Tigger Linux - Newbie 0 05-31-2003 09:11 PM


All times are GMT -5. The time now is 04:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration