Port 2049 (TCP and UDP) is NFS, the Unix and Linux network file system behind shared home directories, NAS exports and Kubernetes persistent volumes. NFSv4 runs over the single TCP port 2049; NFSv3 also needs rpcbind on 111 plus the mountd and lockd ports. Exports trust clients by IP address, so keep 2049 inside the private network.
Below: what uses this port, security considerations, online check, FAQ.
Free online tool — ping & port checker: instant results, no signup.
NFS (Network File System)
Port 2049 — NFS (Network File System) for Unix file sharing. V4 is the current standard (RPC encapsulation). Used in Kubernetes NFS persistent volumes, legacy enterprise storage, macOS Time Machine over network.
NFSv3 without auth = anyone on the network can mount your files. NFSv4 with Kerberos (sec=krb5p) — the only secure option. Never expose NFS to the internet.
Enterno.io Ping + Port checker tests TCP reachability of any port from our server in Moscow.
The Network File System (NFS) operates primarily over TCP and UDP on port 2049. Developed by Sun Microsystems, NFS allows file sharing across a network, enabling users and applications to access files on remote systems as if they were local. This protocol is particularly significant in Unix-like operating systems, where it underpins various distributed file system architectures.
NFS relies on Remote Procedure Calls (RPC) to handle requests between clients and servers. The latest version, NFSv4, improves upon its predecessors by introducing a stateful protocol, which allows for better performance and security features. NFSv4 also supports features like file locking, delegations, and improved authentication mechanisms, which are essential in modern cloud and enterprise environments.
In Kubernetes, for instance, NFS is often used to mount persistent volumes that allow multiple pods to access the same storage resource. This is vital for applications that require shared access to files, such as content management systems or collaborative tools. The use of port 2049 in this context ensures that file operations are handled efficiently, contributing to the overall performance and reliability of cloud-native applications.
When using NFS on port 2049, security is a paramount concern. The protocol, if not configured correctly, can expose sensitive data and create vulnerabilities in your network. Here are key security considerations to take into account:
no_root_squash option cautiously, as it allows root users on client machines to have root access on the NFS server, which can lead to privilege escalation.By adhering to these security practices, organizations can significantly reduce the risks associated with using NFS over port 2049.
Configuring NFS to operate on port 2049 involves several steps, from setting up the server to mounting the file system on clients. Below are practical examples to illustrate this process:
First, install the NFS server package on your Linux system:
sudo apt-get install nfs-kernel-serverNext, create a directory to share:
sudo mkdir /mnt/nfs_shareSet appropriate permissions for the directory:
sudo chown nobody:nogroup /mnt/nfs_shareEdit the NFS exports file to define what to share:
sudo nano /etc/exportsAdd the following line to share the directory with specific clients:
/mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check)After editing, apply the changes:
sudo exportfs -aTo start the NFS server, use the following command:
sudo systemctl start nfs-kernel-serverOn the client machine, install the NFS client package:
sudo apt-get install nfs-commonCreate a mount point:
sudo mkdir /mnt/nfs_clientshareThen, mount the NFS share using:
sudo mount 192.168.1.10:/mnt/nfs_share /mnt/nfs_clientshareReplace 192.168.1.10 with the IP address of your NFS server. To ensure the share mounts automatically on boot, add the following line to /etc/fstab:
192.168.1.10:/mnt/nfs_share /mnt/nfs_clientshare nfs defaults 0 0By following these steps, you can successfully configure and utilize NFS over port 2049 in your environment.
No, modern cloud providers close all incoming ports by default. Explicitly allow 2049 in your Security Group or firewall.
Use Enterno Ping + Port Checker. Or in shell: nc -vz example.com 2049.
Depends on the service. NFS (Network File System) should be hardened (auth + TLS + rate limit) before public exposure. See our 2026 exposure research.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.