BothRegistered PortFirewall: Usually Closed
2049

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

Port Number2049
ProtocolTCP + UDP
CategoryRegistered
Service NameNFS
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 2049 (NFS) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 2049
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:2049/
TelnetBasic TCP port connectivity check
telnet example.com 2049
nmapScan port 2049 with service detection
nmap -p 2049 -sU -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/2049) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 2049/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
firewalld (RHEL / CentOS)
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

Related Ports