Questions
- You need to see a list of network services that are listening for incoming connections. Which of the following commands would you use?
sudo systemctl -t service --state=active
netstat -i
netstat -lp -A inet
sudo systemctl -t service --state=listening
- Which of the following commands would you use to see only a list of established TCP connections?
netstat -p -A inet
netstat -lp -A inet
sudo systemctl -t service --state=connected
sudo systemctl -t service --state=active
- When Nmap tells you that a port is in an open state, what does that mean?
- That the port is open on the firewall.
- That the port is open on the firewall and that the service that’s associated with that port is running.
- That the port is accessible via the Internet.
- That the port’s Access Control List is set to
open
.