SMB over NetBIOS, the older transport used before direct SMB on 445.
SMB over NetBIOS, the older transport used before direct SMB on 445.
Do not expose to the internet. Block at the perimeter. Modern Windows networks rarely need it; disabling NetBIOS over TCP/IP removes it entirely.
sudo ss -tlnp 'sport = :139'sudo lsof -nP -i :139sudo netstat -tlnp | grep ':139 'netstat -ano | findstr :139Get-NetTCPConnection -LocalPort 139 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 139Test-NetConnection HOST -Port 139sudo ufw deny 139/tcpsudo iptables -A INPUT -p tcp --dport 139 -j DROPsudo nft add rule inet filter input tcp dport 139 dropNew-NetFirewallRule -DisplayName 'Block TCP 139' -Direction Inbound -Protocol TCP -LocalPort 139 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.