• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

Given the following netstat output, which three statements about the local machine are true? (Choose three.)

Proto Recv-Q Send-Q Local Address          Foreign Address      State
tcp        0      0 0.0.0.0:22             0.0.0.0:*            LISTEN
tcp        0      0 192.168.0.254:49536    203.0.113.77:80      ESTABLISHED
  • It is acting as an HTTP client.
  • It is acting as an HTTP server.
  • It is acting as an SSH server.
  • It is acting as an SSH client.
  • It is hosting a service that is accessible on all interfaces.
Explanation & Hint:

From the provided netstat output, the following three statements about the local machine are true:

  1. It is acting as an SSH server.
    • The first line indicates that the local machine is listening on port 22, which is the default port for SSH. Therefore, it is acting as an SSH server.
  2. It is acting as an HTTP client.
    • The second line shows an established connection from the local machine (192.168.0.254) to a remote host on port 80, which is commonly used for HTTP. This indicates that the local machine is acting as an HTTP client.
  3. It is hosting a service that is accessible on all interfaces.
    • The first line specifies the local address as “0.0.0.0,” which means that the service (SSH server) is bound to all network interfaces and is accessible from any network interface. Therefore, it is hosting a service accessible on all interfaces.

The other two statements about acting as an HTTP server and acting as an SSH client are not supported by the given netstat output.

For more Questions and Answers:

Endpoints and Systems Post-Assessment | CBROPS

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments