Port 2049: NFS

Network file system shares. Keep storage traffic on a private network.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Examples:

Ports

1 of 41

Port Lookup

Port 2049 at a glance

Port2049
ProtocolTCP/UDP
ServiceNFS
Open to the Internet?No, keep it on a private network
See What Is Listeningss -lntup | grep ':2049 '
Test From Outsidenc -zv your-server 2049
Block with UFWufw deny 2049/tcp; ufw deny 2049/udp
Block with nftablesnft add rule inet filter input meta l4proto { tcp, udp } th dport 2049 drop

NFS uses TCP/UDP port 2049. Network file system shares.

Keep storage traffic on a private network.

If ss shows something listening on port 2049 on a public address, bind it to 127.0.0.1 or a private interface in the service's own configuration, and drop the port in the firewall as well.

Questions

What is port 2049 used for?
NFS. Network file system shares.
Is it safe to open port 2049?
No, keep it on a private network. Keep storage traffic on a private network.
How do I check if port 2049 is open?
On the server, ss -lntup | grep ':2049 ' shows what is listening. From another machine, nc -zv your-server 2049 shows whether the firewall lets it through.
How do I block port 2049?
With UFW: ufw deny 2049/tcp and ufw deny 2049/udp. With nftables, add a drop rule for dport 2049 in your input chain.

Abuse from open ports on your VMs?

Frabs spots amplification, scans and floods leaving any VM and stops them, without touching your firewall.