NFS
What is Port 2049?
Port 2049 is the default port for the Network File System (NFS), a distributed file system protocol originally developed by Sun Microsystems in 1984. NFS allows a system to share directories and files with others over a network, enabling users to access remote files as if they were local. NFS version 4 (RFC 7530) simplified the protocol by requiring only port 2049, eliminating the dependency on RPCBind (port 111) that earlier versions required. NFS is the standard for shared storage in Unix/Linux environments and is widely used in data centers, HPC clusters, and cloud infrastructure. AWS EFS, GCP Filestore, and Azure Files all offer NFS-based managed file storage.
Common Uses
- Shared storage for Linux servers and clusters
- Home directory sharing in enterprise Linux environments
- Container persistent storage (Kubernetes NFS provisioner)
- Cloud-managed file systems (AWS EFS, GCP Filestore)
Technical Details
Copy-paste commands to check port 2049 (NFS) from your terminal
Test connectivity
nc -zv example.com 2049
curl -v --max-time 5 http://example.com:2049/
telnet example.com 2049
nmap -p 2049 -sU -sV example.com
(echo > /dev/tcp/example.com/2049) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 2049/tcp
sudo iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
sudo firewall-cmd --permanent --add-port=2049/tcp && sudo firewall-cmd --reload
Security Considerations
NFS has historically had weak security, relying on IP-based access control and UID/GID mapping. NFSv4 added Kerberos authentication and encryption (krb5p). Always use NFSv4 with Kerberos for sensitive data. Export only necessary directories with the least-privilege access. Never expose NFS to the internet. Use network segmentation and firewall rules to restrict access.
Popular Ports Reference
The most commonly used and referenced network ports