- List opened ports with protocol name :
netstat --listen --tcp
- List opened ports with protocol number :
netstat --listen --tcp -n
- Check a Port 587 is Not Blocked. For example, Port 25
telnet yourdomain.tld 25
- 220 response confirm port not blocked
- Unable to connect or Connection refused confirm port blocked.