Fnd open ports on network hosts with nmap

?
R
Bash

nmap is a wonderful tool specially for debugging, there are lots of times when you need to know if a port is open in a server, or maybe blocked by a firewall, or just to test your iptables rules. https://www.garron.me/en/go2linux/nmap-command-graph-front-end-port-scan.html

1#Scan Hosts for Open Ports
2`apt-get install nmap`
3`brew install nmap`
4#Finnd all open ports
5`sudo nmap -sS -O rsyslog-server.dockerapp.io`
6#Find if specific port is open
7`sudo nmap -sS -p 514 rsyslog-server.dockerapp.io`

Created on 1/31/2018