linux_wiki:network_services_overview_nfs

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:network_services_overview_nfs [2016/10/01 23:10]
billdozor [Configure the service for basic operation]
linux_wiki:network_services_overview_nfs [2019/05/25 23:50] (current)
Line 12: Line 12:
   * Configure the service for basic operation   * Configure the service for basic operation
   * Configure host-based and user-based security for the service   * Configure host-based and user-based security for the service
 +
 +----
 +
 +====== Lab Setup ======
 +
 +The following virtual machines will be used:
 +  * server1.example.com (192.168.1.150) -> Perform all NFS client tests from here
 +  * server2.example.com (192.168.1.151) -> Install the NFS server here
  
 ---- ----
Line 27: Line 35:
  
   * Service agnostic -> [[linux_wiki:set_enforcing_and_permissive_modes_for_selinux|Ensure SELinux is running and enabled (RHCSA objective)]].   * Service agnostic -> [[linux_wiki:set_enforcing_and_permissive_modes_for_selinux|Ensure SELinux is running and enabled (RHCSA objective)]].
 +  * **IMPORTANT**: View all label types<code bash># Install package
 +yum install setools-console
 +
 +# View all label types
 +seinfo -t
 +
 +# Find NFS types
 +seinfo -t | grep nfs
 +</code>
  
 ---- ----
Line 68: Line 85:
 ===== Firewall ===== ===== Firewall =====
  
-Allow access through the firewall+Allow access through the firewall to the NFS service
 <code bash> <code bash>
 firewall-cmd --permanent --add-service=nfs firewall-cmd --permanent --add-service=nfs
 +firewall-cmd --reload
 +</code>
 +
 +\\
 +Allow access through the firewall to allow the showmount command from clients to work
 +<code bash>
 +firewall-cmd --permanent --add-service=rpc-bind
 +firewall-cmd --permanent --add-service=mountd
 firewall-cmd --reload firewall-cmd --reload
 </code> </code>
Line 84: Line 109:
   * Hostname based and network based   * Hostname based and network based
   * Others refused   * Others refused
 +
 +Export modifications<code bash>exportfs -var</code>
 ===== User Based ===== ===== User Based =====
  
  • linux_wiki/network_services_overview_nfs.1475377837.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)