Networking
Risk: Critical
Port 2049 β NFS (Network File System)
Port 2049 is the standard port for NFS (NFSv3 and NFSv4) storage services, allowing remote Linux and Unix systems to mount distributed file systems across high-speed LANs.
PORT NUMBER
2049
PROTOCOL
TCP/UDP
DEFAULT PROCESS
nfsd, rpc.mountd
FIREWALL TARGET
2049/tcp/udp
Instant Terminal Fixes for Port 2049
macOS & Linux Terminal
1. Check who is listening on port 2049:
sudo lsof -i :2049 || sudo ss -tulpn | grep ":2049 "2. Kill process occupying port 2049 (EADDRINUSE fix):
sudo systemctl stop nfs-server3. UFW Firewall Allow rule:
sudo ufw allow from 10.0.0.0/8 to any port 2049 proto tcpWindows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 20492. Force kill process on port 2049:
Stop-Service NfsSvc -Force -ErrorAction SilentlyContinue3. Docker Port Forwarding Mapping:
docker run -d --privileged -p 2049:2049 itsthenetwork/nfs-server-alpineCommon Error Encountered
mount.nfs: mount system call failed: Connection refused on port 2049.
Security Advisory & Hardening
NFS exports must be restricted strictly to authorized client IP ranges in /etc/exports. Never expose port 2049 beyond a trusted private storage network.
Frequently Asked Questions
Port 2049 Questions & Answers
Common questions regarding default services, kill commands, and firewall configurations.
Port 2049 is commonly used for NFS (Network File System). Port 2049 is the standard port for NFS (NFSv3 and NFSv4) storage services, allowing remote Linux and Unix systems to mount distributed file systems across high-speed LANs.