TCP port
Port 445: SMB
TCP port 445 is SMB: Windows-style file and printer sharing. A client logs in, connects to a named share, and reads or writes its files.
- The client first negotiates a dialect: modern clients speak SMB2 or SMB3 and refuse the old, insecure SMB1.
Check port 445 on Linux
Put the server's name or address in place of HOST.
ss -tlnp 'sport = :445'- On the server: is a program listening on TCP port 445, on which address, and which program? How to read ss.
nc -zv HOST 445- From a client: does a TCP connection to port 445 open, get refused, or time out? How to read nc.
tcpdump -ni any tcp port 445- On either end: the packets to and from TCP port 445, as they cross the card. How to read tcpdump.
nmap -p 445 HOST- From outside: is TCP port 445 open, closed or filtered? How to read nmap.
What runs on it
- SMB/CIFS
- Windows-style file and printer sharing on TCP 445: a client logs in, connects to a named share, and reads or writes its files.
- Firewall
- Rules deciding, packet by packet, what may reach or cross a device.