nerdexam
CompTIA

SY0-301 · Question #229

A firewall technician has been instructed to disable all non-secure ports on a corporate firewall. The technician has blocked traffic on port 21, 69, 80, and 137-139. The technician has allowed…

The correct answer is B. Blocked: FTP, TFTP, HTTP, NetBIOS; Allowed: SFTP, SSH, SCP, HTTPS. Port 21 maps to FTP, port 69 to TFTP, port 80 to HTTP, and ports 137-139 to NetBIOS - all blocked. Port 22 corresponds to SSH (which also carries SFTP and SCP) and port 443 to HTTPS - both allowed.

Security operations

Question

A firewall technician has been instructed to disable all non-secure ports on a corporate firewall. The technician has blocked traffic on port 21, 69, 80, and 137-139. The technician has allowed traffic on ports 22 and 443. Which of the following correctly lists the protocols blocked and allowed?

Options

  • ABlocked: TFTP, HTTP, NetBIOS; Allowed: HTTPS, FTP
  • BBlocked: FTP, TFTP, HTTP, NetBIOS; Allowed: SFTP, SSH, SCP, HTTPS
  • CBlocked: SFTP, TFTP, HTTP, NetBIOS; Allowed: SSH, SCP, HTTPS
  • DBlocked: FTP, HTTP, HTTPS; Allowed: SFTP, SSH, SCP, NetBIOS

How the community answered

(17 responses)
  • A
    18% (3)
  • B
    71% (12)
  • C
    6% (1)
  • D
    6% (1)

Why each option

Port 21 maps to FTP, port 69 to TFTP, port 80 to HTTP, and ports 137-139 to NetBIOS - all blocked. Port 22 corresponds to SSH (which also carries SFTP and SCP) and port 443 to HTTPS - both allowed.

ABlocked: TFTP, HTTP, NetBIOS; Allowed: HTTPS, FTP

This choice omits FTP (port 21) from the blocked list and incorrectly lists HTTPS as an allowed protocol while missing SSH, SFTP, and SCP that also travel over the allowed port 22.

BBlocked: FTP, TFTP, HTTP, NetBIOS; Allowed: SFTP, SSH, SCP, HTTPSCorrect

Port 21 is the FTP control port, port 69 is TFTP, port 80 is HTTP, and ports 137-139 are used by NetBIOS for name resolution and session services - all of these are unencrypted or inherently insecure protocols that the technician blocked. Port 22 hosts SSH, which also provides the transport layer for SFTP and SCP, making all three protocols available when port 22 is open. Port 443 carries HTTPS, the encrypted version of web traffic, completing the list of allowed secure protocols.

CBlocked: SFTP, TFTP, HTTP, NetBIOS; Allowed: SSH, SCP, HTTPS

This choice incorrectly lists SFTP as blocked rather than allowed, since SFTP operates over SSH on port 22 which was explicitly left open by the technician.

DBlocked: FTP, HTTP, HTTPS; Allowed: SFTP, SSH, SCP, NetBIOS

This choice incorrectly places HTTPS in the blocked category and NetBIOS in the allowed category, which is the opposite of what the port assignments indicate.

Concept tested: Port numbers for FTP, TFTP, HTTP, NetBIOS, SSH, and HTTPS

Source: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

Topics

#firewall rules#port numbers#network protocols#FTP/SFTP/SSH

Community Discussion

No community discussion yet for this question.

Full SY0-301 Practice