LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-16-2022, 07:05 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
NFS Encryption - PITA?


Is it just me, or is encrypting NFS a real PITA? Tutorials to secure NFS ... long, arduous, confusing reads. Doesn't seem to matter if it's over SSH or TLS/STunnel. Why, in this age, isn't this simpler to implement?
 
Old 05-16-2022, 08:16 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
If the client and server trust each other already, and all that is needed is protection of the NFS traffic as it flows over an untrusted network then easiest way is probably to use a VPN. I use OpenVPN for this (and other things) and it works quite well. I've heard good things about WireGuard too.

Or have I misunderstood your question?
 
Old 05-17-2022, 02:21 PM   #3
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by rkelsen View Post
If the client and server trust each other already, and all that is needed is protection of the NFS traffic as it flows over an untrusted network then easiest way is probably to use a VPN. I use OpenVPN for this (and other things) and it works quite well. I've heard good things about WireGuard too.

Or have I misunderstood your question?
Does VPNing mean all network traffic between client/server would have to tunnel through VPN, or can I just encrypt NFS?
 
Old 05-18-2022, 12:18 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,647
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
I recommend that you secure the communications channel, which means that you do not need to encrypt the NFS material unless you are seriously worried that the underlying stored data might be stolen.

OpenVPN, when properly configured using digital certificates instead of "PSKs = simple passwords," provides a very strong and reliable secure channel in which the identity of every agent can be reliably identified ... and access rights can be individually revoked without affecting the others. Simply use firewalls to ensure that NFS traffic can only pass through the tunnel.

The tunnel will "blanket secure" not only the NFS traffic, but everything else that passes through it, without drawing attention to itself. None of the clients need to know nor care ... "to them, it's just a router."

The other routine VPN alternative, "IPsec," is also equally secure and transparent, although a bit more difficult (IMHO ...) to manage.

Last edited by sundialsvcs; 05-18-2022 at 12:24 PM.
 
1 members found this post helpful.
Old 05-18-2022, 07:27 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Quote:
Originally Posted by SlowCoder View Post
Does VPNing mean all network traffic between client/server would have to tunnel through VPN, or can I just encrypt NFS?
Not 100% on the specifics, but I think if you were to add a second NIC to your server then that second NIC could run on it's own subnet and the traffic could be separated between NFS and non-NFS at the router.
 
  


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
Is K3B always such a PITA ??? bigjohn Linux - Software 5 08-20-2005 01:34 PM
nuisance error(s)/PITA ??? bigjohn Debian 9 05-08-2005 03:49 PM
Installing software is a PITA with linux!! m3s3lf Linux - Newbie 14 12-15-2004 04:20 AM
PITA desktop icons (xawtv) ssevenup Mandriva 5 11-17-2004 11:14 PM
bind is a pita.... trey85stang Linux - Networking 2 07-14-2004 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 AM.

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