Port 445: SMB

Windows file sharing. WannaCry and NotPetya spread through exposed SMB. Most ISPs block it; never open it to the internet.

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

Examples:

Ports

1 of 41

Port Lookup

Port 445 at a glance

Port445
ProtocolTCP
ServiceSMB
Open to the Internet?No, keep it on a private network
See What Is Listeningss -lntup | grep ':445 '
Test From Outsidenc -zv your-server 445
Block with UFWufw deny 445/tcp
Block with nftablesnft add rule inet filter input tcp dport 445 drop

SMB uses TCP port 445. Windows file sharing.

WannaCry and NotPetya spread through exposed SMB. Most ISPs block it; never open it to the internet.

If ss shows something listening on port 445 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 445 used for?
SMB. Windows file sharing.
Is it safe to open port 445?
No, keep it on a private network. WannaCry and NotPetya spread through exposed SMB. Most ISPs block it; never open it to the internet.
How do I check if port 445 is open?
On the server, ss -lntup | grep ':445 ' shows what is listening. From another machine, nc -zv your-server 445 shows whether the firewall lets it through.
How do I block port 445?
With UFW: ufw deny 445/tcp. With nftables, add a drop rule for dport 445 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.