LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2015, 08:05 PM   #1
LYC
Member
 
Registered: Jan 2014
Posts: 109

Rep: Reputation: Disabled
Secure NFS setup queries


Hi,

We have Solaris servers running secure NFS for both server and client as follows:
Server:
share -F nfs -o ro=<nfs server>:<nfs server> /<export folder>

Client:
ssh -fN -L "3049:<nfs server>:2049" <login name>@<nfs server>
mount -o port=3049 nfs://localhost/<folder> /<folder>

How to implement the above in linux?

Thanks in advance.

Last edited by LYC; 08-20-2015 at 10:51 PM.
 
Old 08-22-2015, 05:49 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Wouldn't it be simpler to use sshfs?

https://help.ubuntu.com/community/SSHFS
 
Old 08-22-2015, 06:12 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Are you using NFS v3 or v4?

No problems doing this in Linux, although I agree that using sshfs would be less convoluted. (Make sure that you have port forwarding enabled in your ssh server though.)

https://blogs.oracle.com/shepler/ent...raffic_via_ssh
https://gist.github.com/proudlygeek/5721498
 
Old 08-22-2015, 11:02 PM   #4
LYC
Member
 
Registered: Jan 2014
Posts: 109

Original Poster
Rep: Reputation: Disabled
Hi ferrari,

Correct me that the firewall ports need to be opened between the server and client are as follows?

(1) 3049 TCP (both way)
(2) 2049 UDP (both way)
(3) 22 TCP (both way)
 
Old 08-23-2015, 12:24 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The whole idea of the SSH tunnel is that only SSH port on the server needs to be open. We're using local port forwarding here.
 
  


Reply



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
Secure network boot, Secure NFS alternative? Lop3 Linux - Security 1 07-21-2015 11:55 AM
NFS queries - Newbie LYC Linux - Newbie 1 01-06-2015 08:25 AM
NFS Secure linux2uday Linux - Newbie 1 12-25-2012 07:09 AM
How to setup nslookups, queries using /etc/hosts as the default cornsnap Linux - Server 4 07-10-2008 08:21 PM
How can I secure NFS jess1975 Linux - Networking 6 03-22-2005 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration