Infrastructure lab: Secure NFS file sharing architecture built on Linux with service hardening.
Build and configure a secure NFS server-client architecture in a Linux environment.
- 1 VM → NFS Server
- 1 VM → NFS Client
- Shared directory → /data/shared
- Persistent mount
- Firewall and permission configuration
- Linux (AlmaLinux / RHEL)
- NFS
- Firewalld
- SELinux
- Network file sharing
- Linux permissions
- Service management
- Security hardening
- root_squash: Client-side root user is mapped to anonymous user (nfsnobody).
- no_root_squash: Client root keeps root privileges on the server (not recommended for production).
- NFSv3 uses multiple ports (rpcbind, mountd).
- NFSv4 primarily uses port 2049 and is more firewall-friendly.
- NFSv4 supports stateful operations and improved security.
If SELinux is enforcing, proper context must be applied: setsebool -P nfs_export_all_rw on