A network administrator is troubleshooting an issue where users are unable to access a secure website hosted on an internal Linux server. The administrator executes the command `netstat -an` on the server and receives the following output snippet:
text Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
Based on this output, which of the following is the primary cause of the connectivity failure?
- The web server daemon is actively listening for unencrypted HTTP traffic on port 80, but the HTTPS service on port 443 is not running or listening.Answer
- BThe server is receiving secure encrypted traffic on port 22 instead of port 443, causing a protocol mismatch error.
- CThe local DNS resolver on the client workstation failed to query the authoritative server for an AAAA record.
- DThe server's CNAME record is misconfigured, preventing TCP handshake packets from reaching port 80.
Answer
The web server daemon is actively listening for unencrypted HTTP traffic on port 80, but the HTTPS service on port 443 is not running or listening.
The `netstat -an` output displays numerical network addresses and active socket states. The snippet shows TCP port 80 (HTTP) and TCP port 22 (SSH) in the `LISTEN` state. Because secure web traffic uses TCP port 443 (HTTPS), and port 443 does not appear in the active listening socket table, client requests over HTTPS will be refused at the transport layer.
Step-by-Step Solution
Key Concept
Analyzing netstat listening sockets to verify network service availability and port bindings