User Tools

Site Tools


nfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
nfs [2019/02/01 13:45]
raion [Guides]
nfs [2019/04/19 02:48] (current)
raion Linux NFS added
Line 47: Line 47:
 Further examples will include PF firewall rules to ensure spoofed/​hostile traffic cannot compromise NFS.  Further examples will include PF firewall rules to ensure spoofed/​hostile traffic cannot compromise NFS. 
  
 +===Linux (Ubuntu)===
 +Thanks to Larbob/lbdm for this guide. ​
 +
 +==Preparation==
 +Install the NFS subsystem:
 +
 +<​code>​sudo apt install nfs-kernel-server</​code>​
 +
 +Make an NFS share directory:
 +
 +<​code>​sudo mkdir -p /​srv/​nfs</​code>​
 +
 +Set up /​etc/​exports with something like this:
 +
 +<​code>/​srv/​nfs 192.168.0.0/​24(rw,​sync,​no_subtree_check,​no_root_squash)</​code>​
 +
 +Edit /​etc/​default/​nfs-kernel-server'​s RPCMOUNTDOPTS section to add --no-nfs-version 4
 +
 +==Finishing Touches==
 +<​code>​sudo exportfs -ra
 +sudo systemctl restart nfs-config
 +sudo systemctl restart nfs-kernel-server</​code>​
 +
 +This will provide a setup to allow anyone with uid 0 to write as root. Please be careful if deciding this.
  
  
 {{tag>​Subsystems and Applications Tutorials}} {{tag>​Subsystems and Applications Tutorials}}
nfs.1549046715.txt.bz2 ยท Last modified: 2019/02/01 13:45 by raion